05-22-2011 12:56 PM
<callActivity id="callactivity1" name="Call activity" calledElement="subProcess">
<extensionElements>
<activiti:in source="list" target="list"></activiti:in>
</extensionElements>
<multiInstanceLoopCharacteristics isSequential="true">
<loopDataInputRef>…</loopDataInputRef>
<completionCondition>${list.size()!=0}</completionCondition>
</multiInstanceLoopCharacteristics>
</callActivity>
By doing this way, every changes to the list inside the subprocess will be visible to the main process. List is now like a global variable for the main and all sub process of the loop. Also, I can trigger the loop to terminate immediately when, for example, the list is not empty as above.05-24-2011 04:06 AM
05-24-2011 05:31 AM
<activitiut sourceExpression="${"HelloWorld"}" target="i"></activitiut>
i is the variable of the main process. If it works, it doesn't matter how many times i is overwritten, we should have "HelloWorld" in i in the end. But not.05-25-2011 06:01 AM
05-25-2011 06:14 AM
11-28-2015 08:40 AM
02-27-2017 10:38 AM
Late reply but might be useful for someone else....
One way of dealing with it would be to write a delegate or script to do the following...
execution below is from the subprocess
superExecutionId = execution.getSuperExecutionId();
runtimeService.setVariable(superExecutionId, someVariableName, someValue);
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.