Time for action – adding the <while> loop

Let us start with the <while> loop:

  1. Before adding the <while> loop, construct the BPEL flow. We will add two variables: NoOrders and i, both of the type xsd:int. We can add variables using the big green plus sign in the lower left window:
    Time for action – adding the <while> loop

    Alternatively, we can write source code directly:

    Time for action – adding the <while> loop
  2. Then we will need to know how many items we have in our list of book orders. We will use the XPath count() function to achieve this. Alternatively, we could use an Oracle extension function ora:countNodes(), but this would make ...

Get WS-BPEL 2.0 Beginner's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.