title: How to create a Activiti Multiinstance Task programmatically?
body: <p>i try to create a multiinstance workflow programmatically.</p>
  
  <p>I got these BPMN xml that works fine:</p>
  
  <pre><code>&lt;userTask id="multiTask" name="Review task ${loopCounter}" activiti:assignee="${reviewer}"&gt;
    &lt;multiInstanceLoopCharacteristics isSequential="false" activiti:collection="reviewersList" activiti:elementVariable="reviewer"&gt;
      &lt;completionCondition&gt;${nrOfCompletedInstances &gt; maxReviewer }&lt;/completionCondition&gt;        
    &lt;/multiInstanceLoopCharacteristics&gt;
  &lt;/userTask&gt;
  </code></pre>
  
  <p>How i can do these with pure Java?
  I started with these: </p>
  
  <pre><code>MultiInstanceLoopCharacteristics loopChar = new MultiInstanceLoopCharacteristics(); 
  </code></pre>
  
  <p>but i dont know how to go on.</p>