[jboss-user] [jBPM] - Re: How to access a processInstance within a work item

Tihomir Surdilovic do-not-reply at jboss.com
Sun Aug 28 23:45:39 EDT 2011


Tihomir Surdilovic [http://community.jboss.org/people/tsurdilovic] created the discussion

"Re: How to access a processInstance within a work item"

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

--------------------------------------------------------------
Hi, you can pass the session to the handler and register it. For example:

CustomerServiceTaskHandler handler = new CustomerServiceTaskHandler(ksession, ......);
ksession.getWorkItemManager().registerWorkItemHandler("myServiceTaskHandler", handler);

In the handler then you can invoke methods on the ksession, like in your example the signalEvent() method.
Hope this helps.
--------------------------------------------------------------

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

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/20110828/bba00aa9/attachment-0001.html 


More information about the jboss-user mailing list