Getting the BPEL process status data
This recipe explains how to retrieve the current status of the BPEL process.
Getting ready
In order to complete this recipe, we will extend the output variable of the BPEL process. Thus, we open the BPEL_and_Java_2_0.xsd
schema file and add an additional element to retrieve the BPEL process status data:
<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" type="string"/>
<element name="prc_inst_creator" type="string"/>
<element name="prc_status" type="string"/>
</sequence>
</complexType>
</element>
How to do it…
Open the BPEL_and_Java_2_0
process and add the Java Embedding activity (Java_Process_Status
). Double-click on the Java_Process_Status
activity and put in the code snippet...