cancel
Showing results for 
Search instead for 
Did you mean: 

How to read the current Node name ?

paulwerder
Champ in-the-making
Champ in-the-making
Hi all,
I'm just learning Activiti but from the documentation I could not find a way to know the current node name, either from the Process Explorer graph or from the Api. By current Node I mean where the ProcessInstance is waiting.
Can anybody help me how to get the current Node name ?
thanks a lot
Paul
1 REPLY 1

frederikherema1
Star Contributor
Star Contributor
Hi,

You can use this API-method:

ProcessInstance myInstance = runtimeService.createProcessInstanceQuery()….singleResult();
List<String> activeActivityIds = runtimeService.getActiveActivityIds(myInstance.getId())