cancel
Showing results for 
Search instead for 
Did you mean: 

REST process instance query

r3dge
Champ in-the-making
Champ in-the-making
Hello,

I'm trying to figure out how to list all process instances that are in a specific step of the processus with the Activiti REST API.

The process has a multiinstance embedded subprocess wich contains user tasks. My goal is to find all processes that has tasks for this subprocess.

thank you

4 REPLIES 4

jbarrez
Star Contributor
Star Contributor
You'd need to query on activityId, which matches the id you've set in your process definition xml

r3dge
Champ in-the-making
Champ in-the-making
the activitiId is null for processes that have one or several started subprocesses.  Do you have an example ?

jbarrez
Star Contributor
Star Contributor
> the activitiId is null for processes that have one or several started subprocesses.

Sure. That's the way it should be.
But for executions that are in a given step of the process the activitiId is not null

r3dge
Champ in-the-making
Champ in-the-making
ok thank you !