the ubiquitous example of an order and its order lines -
Test XML input
In the BPM process I need to loop thru the order lines.
The basic process looks as follows -
I created a fileAdapter(Read) which triggers the process.
I created the following process variables -
To begin with, I copy the incoming order to the v_order variable.
Then I get the count of incoming order lines -
Now to the looping subprocess -
The loop condition is defined as follows -
Note we have this sub-process variable loopCounter generated for us.
Now to the actual processing - I just copy the orderLine[n] to a variable.
Deploy and test