Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Oracle BPEL For Each Activity Example

Oracle BPEL For-Each Activity Example

Oracle BPEL 2.0 supports For-Each activity. It is similar to a Java For loop. It requires a counter variable, Start value and Final value.

For example, let’s implement the below Java For-Each in Oracle BPEL:

Java for Loop:

for(int i=0;i

In Oracle BPEL:

Open the BPEL process, Drop Oracle BPEL For-Each activity from component palette to the process. Input a Counter name, I mentioned i as counter name, we can access the counted variable inside the for-loop using $i

Click on the tab Counter Values and assign Start Value and Final Value. Here I input 1 and 100. We can access each iterator value using $i

Example 2: Iterating a collection

 

If it is a collection variable than we can use the count() function to count the collection and put it in the Final Value as like below:


We need to use the counter variable to get each record:




This post first appeared on Oracle ADF, BPM, BI And Primavera P6 Tutorials, please read the originial post: here

Share the post

Oracle BPEL For Each Activity Example

×

Subscribe to Oracle Adf, Bpm, Bi And Primavera P6 Tutorials

Get updates delivered right to your inbox!

Thank you for your subscription

×