AnsweredAssumed Answered

How to create a Activiti Multiinstance Task programmatically

Question asked by tschiela on Aug 7, 2012
Latest reply on Aug 14, 2012 by bernd.ruecker

i try to create a multiinstance workflow programmatically.

I got these BPMN xml that works fine:

<userTask id="multiTask" name="Review task ${loopCounter}" activiti:assignee="${reviewer}">
  <multiInstanceLoopCharacteristics isSequential="false" activiti:collection="reviewersList" activiti:elementVariable="reviewer">
    <completionCondition>${nrOfCompletedInstances > maxReviewer }</completionCondition>       

How i can do these with pure Java?
I started with these:

MultiInstanceLoopCharacteristics loopChar = new MultiInstanceLoopCharacteristics();   

but i dont know how to go on.

Greets Thomas