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&...]