[jboss-user] [jBPM] - Re: How to get current node instance in a workitem handler?

Kris Verlaenen do-not-reply at jboss.com
Sun Apr 15 18:19:28 EDT 2012

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

"Re: How to get current node instance in a workitem handler?"

To view the discussion, visit: https://community.jboss.org/message/730148#730148


Your idea of just setting the ksession when creating the handler is indeed what we recommend (and also do ourselves in some handlers).  Note that this ksession is the same session as the one that creates the process instance, but the object that you retrieve (when using persistence) is actually a wrapper around the internal session.  That should however just delegate to the internal session.

Did you have any issues when setting the ksession like this, and if so, could you provide some more detail?


Reply to this message by going to Community

Start a new discussion in jBPM at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20120415/8168f488/attachment-0001.html 

More information about the jboss-user mailing list