[jboss-user] [jBPM] - Re: How to Send Signal Out from a WorkItemHandler?

Kris Verlaenen do-not-reply at jboss.com
Tue Jun 28 20:03:45 EDT 2011


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

"Re: How to Send Signal Out from a WorkItemHandler?"

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

--------------------------------------------------------------
You can just pass the reference to the session when creating your handler and registering it.  Something like:

StatefulKnowledgeSession ksession = ...
MyHandler handler = new MyHandler(ksession, ...);
ksession.getWorkItemManager().registerWorkItemHandler("myWorkItem", handler);

Inside your handler, you can then simply invoke methods on the ksession, like signalEvent(..).

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

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

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/20110628/c2d41fe9/attachment-0001.html 


More information about the jboss-user mailing list