Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagehtml/xml
<forEachparallel="no"counterName="ForEachCounter"><startCounterValue>>
   <startCounterValue>"1"</startCounterValue><finalCounterValue>startCounterValue>
   <finalCounterValue>"3"</finalCounterValue><scopebpmnfinalCounterValue>
   <scopebpmn:label="ForEach"><sequence><assign><copy><from>concat>
      <sequence>
         <assign>
            <copy>
                <from>concat($thisStartRequestMsg.body/text(), $ForEachCounter)</from><to>$thisStartRequestMsgfrom>
                <to>$thisStartRequestMsg.body</to></copy></assign></sequence></scope><to>
            </copy>
         </assign>
       </sequence>
    </scope>
</forEach>

In this sample, 3 iterations take place based on the values of <startCounterValue/> and <finalCounterValue/>. The property counterName can be used as a local variable inside the child scope to store current iteration value. In the above example, ForEachCounter variable value can be 1,2 or 3.

...