How to get resume time of process instance?

Hello,
how can I get in code having processInstanceId time, when process instance, that waiting in IntermediateTimer will be resumed?

Hi @Adam_Pociejowski,

welcome to our forums :tada:

When a timer is executed and the execution waits in this timer, a job with a dueDate is created and persisted to the database.

To access your desired information, just query for this timer job:

Job job = managementService.createJobQuery()
  .timers()
  .singleResult();

Cheers,
Tassilo

1 Like