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:
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:
For creating the input and output, we create local variables within the scope where the previous <invoke> activity was created, as shown:
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).