Time for action – configuring the <invoke> activity within a <forEach> activity

We will now configure the <invoke> activity such that it talks to the search service, using the following steps:

  1. For creating the partner link, we will create the local partner link within the scope where the previous <invoke> activity was created, as shown in the following screenshot:
    Time for action – configuring the <invoke> activity within a <forEach> activity
  2. For creating the input and output, we create local variables within the scope where the previous <invoke> activity was created, as shown:
    Time for action – configuring the <invoke> activity within a <forEach> activity
  3. Once the <invoke> activity is properly configured, click on Apply and then on OK to close the window.

What just happened?

In the preceding section, we configured the <invoke> activity that realizes the repetitive execution logic within the <forEach> activity. We configured the <invoke> activity to invoke the bookstore search service. In the next section, we focus on how to prepare the request message or the input variable of this <invoke> activity.

Initializing the input variable

Now that the input output variables have been already created, we just need to initialize and assign values to the input variables. We assign the string value of the incoming request message (to the BPEL process) to the string value of the outgoing request message (to the bookstore search service).

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

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