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 following steps, we will show you how to access the fields defined in the Element-based variables in a BPEL process:
Open the
Manipulate1_1
BPEL process and add theAssignElement
assign...