-
1. Re: Process Instance Is Disconnected While Persistence Configured
newohybat May 6, 2014 12:31 PM (in response to newohybat)Hi to all,
so I managed to progress with the issue. I have used approach mentioned by Maciej Swiderski in Null Pointer Exception when Rule is used to change process variable value.
The RHS now goes like this:
WorkflowProcessInstance p = (WorkflowProcessInstance)kcontext.getKnowledgeRuntime().getProcessInstance($processId);
p.setVariable("city", $city);
p.setVariable("check",$city.getResourcesSurplus());
But, another issue emerged. When I set a primitive value (process variable check), everything works fine, but when I try to set Object variable(city), the change isn't promoted to the process instance.
-
2. Re: Process Instance Is Disconnected While Persistence Configured
swiderski.maciej May 9, 2014 2:20 AM (in response to newohybat)that sounds very weird as the process instance does not really care about the type of the object. Could you please create standalone reproducer?
HTH