Let us now implement the BookOrderManagement
process:
BookOrderManagementBPEL
process with the BookWarehousingBPEL
process:BookOrderManagementBPEL
process. Let's first have a quick look at the BookWarehousing
XML schema:BookOrderManagementBPEL
process, we would like to use a very similar schema. The only difference would be that we would like to accept a list of BookData
as an input parameter. Therefore, we will import the BookWarehousing
XML schema and add the minOccurs
and maxOccurs
attributes to define the list (array):For the process response, we will use a simple string
, through which we will communicate the status.
We have created the BookOrderManagementBPEL
process, wired it with the BookWarehousingBPEL
process, and created the schema elements for the BookOrderManagementBPEL
process request and response messages.
Now we are ready to implement the BookOrderManagementBPEL
process. In the BPEL process, we will iterate through the list of BookData
orders and delegate each BookData
order to the BookWarehousingBPEL
process.
In the first attempt, we will implement it using a <while>
loop. Next, we will use the <forEach>
loop.