How to ask via REST process instances with token somewhere

How can I ask the engine via REST request for process instances where the token is on a specific gateway or on a specifc timer inside a process model.

Hi - timers and event gateways in the process definition are considered an “activity” and have an associated “activityId”. So in below screenshot, the timer activity id is timer-1.

image

If you want to get all process instances where the token is sitting on timer-1, for example, you can use the process instance API and filter by activityId.

GET /process-instance?activityIdIn=timer-1

1 Like