Setting the BPEL process variables

This recipe explains how to send the data to the BPEL process variable.

Getting ready

In order to complete the recipe, we will update the BPEL_and_Java_1_1 process schema (BPEL_and_Java_1_1.xsd). The new element in the response message is clientResponseMsg:

<element name="processResponse">
  <complexType>
     <sequence>
      <element name="resultFmtBPEL" type="string"/>
      <element name="resultFmtJava" type="string"/>
      <element name="clientResponseMsg" type="string"/>
    </sequence>
  </complexType>
</element>

The newly defined element will be used to return the changed input message to the client.

How to do it…

Open the BPEL_and_Java_1_1 process and insert the Java Embedding activity (SetVar).

Double-click on the SetVar activity to ...

Get BPEL and Java Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.