Adding loops to our example
Let us now extend our example to demonstrate how we can use loops. So far, our BookWarehousing process has been able to handle one book title only. We will extend this example so that it can handle a list (array) of book titles. The process will iterate through the list and direct each book to the corresponding bookstore.
There are two possibilities to extend our example. The first would be to modify the BookWarehousingBPEL process. We would need to modify the corresponding schema for the process to accept a list instead of a single book title. Then, we would need to modify the process flow so that it can handle more than one title.
The other approach that we will use is to add another BPEL process, which we will call ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access