10 Replies Latest reply: Jun 25, 2012 9:50 PM by gigazhang RSS

How to get taskId defined in BPMN file

Jboss fan99 Newbie

First I thought it should be fairly simple to get ID of the node defined in bpmn file. But doesn't seem like that.

Basically I want to get task ID of the current node that's been active in the processInstance. Not the long value which is returned from TaskSummary or from NodeInstance object. But the String value defined in BPMN file. For instance, from below example,  I want some method that returns "_2", given NodeInstance or ProcessInstance objects

 

<userTask id="_2" name="Self Evaluation">

 

Anyone has ideas?