cancel
Showing results for 
Search instead for 
Did you mean: 

How to get a Process Name

jbbond
Champ in-the-making
Champ in-the-making
Hi,

I am new to activiti engine.
I am trying to get the process name by using execution listeners. I am using the executionEntity.getProcessInstanceId() method but it also returns some additional information. For example; it returns "process1:1:1623". However, I would like to only have "process1". I also tried other methods but didn't work for me.

thanks,
1 REPLY 1

jbarrez
Star Contributor
Star Contributor
The DelegateExecution only exposes processDefinitionId and key.
You could use those to look up the  process definition, using the getEngineServices() method and then use the repositoryService.