Accessing the fields within Element-based variables

This recipe explains the method for accessing Element-based variables. We will show you how to access the fields in variables that are Element-based.

Getting ready

We define two Versions (BPEL 1.1 and BPEL 2.0) of synchronous BPEL processes and name them Manipulate1_1 and Manipulate2_0. In both the BPEL processes, we define the Element-based global variable ResponseElement as follows:

<variable name = "ResponseElement" element = "client:process"/>

The structure of the process element can be found in Manipulate1_1.xsd and Manipulate2_0.xsd as follows:

<element name = "process">
  <complexType>
    <sequence>
      <element name = "input" type = "string"/>
    </sequence>
  </complexType>
</element>

How to do it…

In the ...

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.