Reading the BPEL process variables
When using the Java Embedding activity, we need to read data from the BPEL process in order to perform the designed operation. This recipe explains how to read data from the BPEL variables.
How to do it…
Open the BPEL_and_Java_1_1
process and add the Java Embedding activity (ReadVar
) into the BPEL process.
- To read data from BPEL process input variable, we utilize the
getVariableData
function in theReadVar
code snippet:oracle.xml.parser.v2.XMLElement input_var= (oracle.xml.parser.v2.XMLElement)getVariableData("inputVariable","payload","/client:process/client:input");
- The
getVariableData
returns theObject
type, and in our case it isXMLElement
to which we also cast the result. TheXMLElement
class contains convenient ...
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.