History API

How to retrieve HistoricProcessInstance of a sub process based on parent process id from history. For example:

I have BPMN model Process A calling Process B (Using Call Activity). Lets say i have successfully completed 1000 instances in the history table( history audit set to full).

Now I have 123th parent process (process A ) instance id i want to retrieve details of the 123th sub process (Process B) history.

Hi,

you can use the HistoricProcessInstanceQuery#superProcessInstanceId to recieve the historic process instance with the 123 as parent process id.

Greets,
Chris

1 Like