03-18-2011 09:46 AM
03-18-2011 10:01 AM
03-18-2011 10:45 AM
List<String> nameList = new ArrayList<String>();
nameList.add("kermit");
nameList.add("frozzy");
2. For each elements in the nameList, the main process calls a subprocess as belows
<callActivity id="callactivity2" name="Call activity" calledElement="loopCallActivitiesSub">
<multiInstanceLoopCharacteristics isSequential="true"
activiti:collection="nameList" activiti:elementVariable="thisName">
</multiInstanceLoopCharacteristics>
<extensionElements>
<activiti:in source="thisName" target="name" />
<activitiut source="name" target="name" />
</extensionElements>
</callActivity>
3. subprocess has a scriptTask to modify the input name and write back to the main processname = "hello_" + name;
ERROR:org.activiti.engine.ActivitiException: cvc-complex-type.2.4.d: Invalid content was found starting with element 'extensionElements'. No child element is expected at this point. | diagrams/loopCallActivities.bpmn20.xml | line 10 | column 23
so I move the element extensionElements up above the element multiInstanceLoopCharacteristics (but still within callActivity), then the "name" variable wasn't modified by the sub process. I expected: "hello_frozzy"
03-18-2011 11:41 AM
03-21-2011 05:51 AM
03-21-2011 12:29 PM
And of course, when there are multi subprocess, there are multi outputs back to the main process. Please clarify how Activiti will handle such situation so that output results from sub processes don't overwritten each other.
Please help!
03-21-2011 01:10 PM
03-22-2011 06:21 AM
<activitiut source="thisName" target="name[loopCounter]" />
or<activitiut source="thisName" target="${name[loopCounter]}" />
with name is a String array and loopCounter indicates the "index in the for-each loop of that particular instance" (described in the document)02-20-2012 11:47 AM
09-04-2013 05:18 AM
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.