Wednesday, August 31, 2011

BPM11g looping Subprocess

Scenario:
the ubiquitous example of an order and its order lines -

XSD





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





5 comments:

  1. Thanks a ton. This blog saved from a tight spot.

    ReplyDelete
  2. Thanks a ton. Saved me from a tight Spot.

    ReplyDelete
  3. Thanks a ton. This article saved me from a tight spot.

    ReplyDelete
  4. Thanks a ton. This article saved me from a tight spot.

    ReplyDelete
  5. Thanks a ton. This article saved me from a tight spot.

    ReplyDelete