Performing copy between the variables
In this recipe, we will show you the various ways of copying between the variables. For that purpose, we will use the XSLT mapper accessed through the transformation activity from JDeveloper.
Getting ready
Before we are able to copy the variables, we need to adapt the BPEL process to contain data suitable for the XSLT mapper. The problem is that the web service in our BPEL process is returning the field separated data; however, we need the XML-formatted data.
Our first task is to transform the delimited data format to the XML format. For that purpose, we define a new schema with only one element definition and name it
TempSchema.xsd
.<xsd:element name = "TempElement"> <xsd:complexType> <xsd:sequence> <xsd:element name = "pieces" type = "xsd:string" minOccurs = "0" maxOccurs = "unbounded"/> </xsd:sequence> </xsd:complexType> </xsd:element>
The element definition basically presents an...