Reading the process instance data
The Java Embedding environment as well as the BPEL functions support the functionality that retrieves information about the running BPEL process instance, such as the process instance ID, process name, composite name, process instance title, and so on. The information can then be used for logging purposes, notification purposes, and error handling.
This recipe explains how to utilize the process instance data inside the Java Embedding activity.
Getting ready
To complete the recipe, we extend the response message schema (BPEL_and_Java_2_0.xsd
) in the BPEL_and_Java_2_0
process with additional fields, as follows:
<element name="processResponse"> <complexType> <sequence> <element name="day_of_date" type="string"/> <element name="exchangeMsg" type="string"/> <element name="prc_inst_id" type="long"/> <element name="prc_inst_title"...