Time for action – adding the <while> loop
Let us start with the <while>
loop:
- Before adding the
<while>
loop, construct the BPEL flow. We will add two variables:NoOrders
andi
, both of the typexsd:int
. We can add variables using the big green plus sign in the lower left window:Alternatively, we can write source code directly:
- 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 functionora: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.