cancel
Showing results for 
Search instead for 
Did you mean: 

Get Task Name form bpmn file

montej
Champ in-the-making
Champ in-the-making
Hi ,
I have created Activiti Diagram in which there are different task named  like 'Review Content','Offer Price','Underwrite Content'
Now i want  to get 'current task' and Previous task' name,How can i get this in expression of BPMN file?
1 REPLY 1

vasile_dirla
Star Contributor
Star Contributor
Hi,
I guess you are in a context where you have access to the "execution".
if so, you could read the information from the BPMN definition:
<code>
   BpmnModel model = repositoryService.getBpmnModel(execution.getProcessDefinitionId());
</code>
and then just interpret the information you'll find in this model object.