Time for action – adding the BookOrderManagement process

Let us now implement the BookOrderManagement process:

  1. First, we will add the BPEL Process component to the assembly diagram:
    Time for action – adding the BookOrderManagement process
  2. Next, we will wire the BookOrderManagementBPEL process with the BookWarehousingBPEL process:
    Time for action – adding the BookOrderManagement process
  3. Next, we will define the corresponding XML schema for the BookOrderManagementBPEL process. Let's first have a quick look at the BookWarehousing XML schema:
    Time for action – adding the BookOrderManagement process
  4. In the 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):
    Time for action – adding the BookOrderManagement process

For the process response, we will use a simple string, through which we will communicate the status.

What just happened?

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.

The while loop

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.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.191.127.253