Copying content between the variables
One of the fundamental functionalities of a BPEL process is the manipulation of XML data from the request via various intermediate operations and transformations to the response. This recipe explains the principles of copying content between the variables.
Getting ready
For this recipe, we will clone the FromSpecBPEL.bpel
process from the previous recipe and create two BPEL processes: VarCopy1_1.bpel
(synchronous BPEL process, Version 1.1) and VarCopy2_0.bpel
(synchronous BPEL process, Version 2.0).
How to do it…
The following steps explain how to copy content between variables in a BPEL process:
Open the
VarCopy1_1
BPEL process and add the assign (AssignCopy
) activity.Double-click on the assign activity. The Edit Assign dialog appears as shown in the following screenshot:
The top part of the Copy Rules tab is divided into three sections. We can consider the left side as the
from
part and the right side as theto
part. The middle of the pane is reserved as...