BPM, Workflow, and Case

 View Only

 Retrieving instances data

Ahmed Shaheen's profile image
Ahmed Shaheen IBM Champion posted Tue May 13, 2025 02:22 AM

Dears,

We have a situation that requires retrieving of a business object values that was not stored in an external database from the BPM instances , is their any way to get these data?

Tan Dao's profile image
Tan Dao

Hi Ahmed,

You can get the business data from process instance by accessing businessData from TWProcessInstance.

This return a Map.
var data = tw.system.findProcessInstanceByID("123456").businessData;
var primitiveVar = data.get("primitiveVar");
var propFromComplexVar = data.get("complexVar.id");