cancel
Showing results for 
Search instead for 
Did you mean: 

Get current process instance status - receive task

lestat86
Champ in-the-making
Champ in-the-making
Hello everyone,

i'm designing a backend for an application using activiti and i have a small problem. My BPM is composed of userTask, receiveTask and serviceTask, so i'd like to display to the user the "status" of a process he started, i.e. the documentation field of every task node.
I'm having trouble doing this, expecially because i cannot seem to find the receivetask in the active task list returned by the task service.

So my request is this: i'd like to have a method that takes in a process instance id and outputs the documentation field of the node it is actually on (should it be usertask, receivetask, etc it shouldn't matter).

Is it possible?

Thanks a lot!!
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
The taskService only returns user tasks.

To have something that works generically:
To get the documentation of the current field, do an executionQuery with the process instance id.
Use the activityId in these executions, and look up the documentation in the BpmnModel using repositoryService.getBpmnModel.