AnsweredAssumed Answered

is POJO in Multi-Instance ReadOnly?

Question asked by jaiwo99 on Mar 5, 2012
Hi,

i got a question.

i used a collection List<myPOJO> for a multi-instance process. so i got for every instance a object "myPOJO", is this object readonly? Because i did this

String executionId = ProcessService.getTaskService().createTaskQuery().taskId(taskId).singleResult().getExecutionId();
Map<String, Object> properties = ProcessService.getRuntimeService().getVariables(executionId);
MyPOJO myPOJO = (MyPOJO) properties.get("myPOJO");
myPOJO.setProperty(true);
but later in the process, i checked this variable in an exclusiveGateway ${myPOJO.property}, process send me always to the 'false' way, so i think mb the object is read only, or should i use:

myPOJOList.get(loopcounter).setProperty(true); so i can set the value of my POJO object.

best regards, James

Outcomes