[jboss-user] [jBPM] - Re: How to get the Task instance id ?

Kris Verlaenen do-not-reply at jboss.com
Sat May 14 19:52:26 EDT 2011


Kris Verlaenen [http://community.jboss.org/people/KrisVerlaenen] created the discussion

"Re: How to get the Task instance id ?"

To view the discussion, visit: http://community.jboss.org/message/605318#605318

--------------------------------------------------------------
Hi,

You can cast kcontext.getNodeInstance() to WorkItemNodeInstance and use getWorkItemId() to get the id of the work item.
You can then get the Task instance itself from the TaskServiceSession using getTaskByWorkItemId(..).

Could you maybe share your use case why you need access to the task instance id?  Maybe there is another workaround as well.  It's for example easy to pass the task instance itself as a result parameter of the human task.

Kris
--------------------------------------------------------------

Reply to this message by going to Community
[http://community.jboss.org/message/605318#605318]

Start a new discussion in jBPM at Community
[http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034]

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110514/f906026d/attachment.html 


More information about the jboss-user mailing list