cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieving all tasks defined in a process definition via REST API

dvk78
Champ in-the-making
Champ in-the-making
I was trying to find out if it was possible to retrieve the list of all User tasks configured in a process definition/instance via the REST API.
From the user guide I could not determine if that is possible at all. Only the tasks that have been completed/current seem to be getting returned for runtime/tasks or runtime/executions.
I would like to know if it is possible via the REST API to retrieve all tasks in a process definition/instance.
15 REPLIES 15

trademak
Star Contributor
Star Contributor
Correct, processDefinitionId is not a supported request parameter currently.
Instead, you could use processDefinitionKey for example.

Best regards,

Thanks trademak, Can you please reply me with the example how i can use processDefinitionKey  as parameter.

jbarrez
Star Contributor
Star Contributor
I've added processDefinitionId last week.

amruta_holey
Champ in-the-making
Champ in-the-making
Thanks jbarrez. Till the time we get next release of Acitiviti,
is there any other alternative way to get tasks list which are defined in process definition ?

jbarrez
Star Contributor
Star Contributor
no, process definition key is the only way I'm afraid. But you'll get the tasks for all the version for that particular key.

nmorado
Champ on-the-rise
Champ on-the-rise

this has been a while - but i am on same boat.

getting all user tasks from BpmnModel will give you statically the universe of tasks without considering conditional workflows - is my assumption correct?

If yes - then would we get all user tasks that are only valid based on conditional workflows and existing runtime parameters to process instance?

thanks