Invoking XML facade from BPEL processes
This recipe explains how to use XML facade inside BPEL processes. We can use XML façade to simplify access of XML content from Java code. When using XML façade, the XML content is exposed over Java code.
Getting ready
To complete the recipe, there are no special prerequisites. Remember that in the Packaging XML facade into JAR recipe, we defined the ANT task to copy XML facade to the BPEL process library directory. This task basically presents all the prerequisites for XML facade utilization.
How to do it...
Open a BPEL process (Derivative_Cashflow.bpel
) in JDeveloper and insert the Java Embedding activity into it:
- We first insert a code snippet. The whole code snippet is enclosed by a try catch block:
try {
- Read the input cashflow variable data:
oracle.xml.parser.v2.XMLElement input_cf= (oracle.xml.parser.v2.XMLElement)getVariableData("inputVariable","payload","/client:Cashflows");
- Un-marshall the XML content through...