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 ...

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.