[jboss-user] [jBPM] - Re: SyncTaskServiceWrapper registerForEvent

Mauricio Salatino do-not-reply at jboss.com
Mon Oct 1 08:00:16 EDT 2012


Mauricio Salatino [https://community.jboss.org/people/salaboy21] created the discussion

"Re: SyncTaskServiceWrapper registerForEvent"

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

--------------------------------------------------------------
The jbpm-human-task-services is emiting CDI events:

All the events are hidden from the regular user that is not interested in them but, because the Human Task WorkItems rely on these events to work you can find an example usage of them here:

 https://github.com/droolsjbpm/jbpm/blob/master/jbpm-human-task/jbpm-human-task-workitems/src/main/java/org/jbpm/task/wih/ExternalTaskEventListener.java https://github.com/droolsjbpm/jbpm/blob/master/jbpm-human-task/jbpm-human-task-workitems/src/main/java/org/jbpm/task/wih/ExternalTaskEventListener.java

That's the listener which is Observing events that are being emitted by the HT services.

All the tests inside the jbpm-human-task-workItems are using these events to notify the session about a task completion/abortion -> 
 https://github.com/droolsjbpm/jbpm/blob/master/jbpm-human-task/jbpm-human-task-workitems/src/test/java/org/jbpm/task/wih/HTWorkItemHandlerCDITest.java https://github.com/droolsjbpm/jbpm/blob/master/jbpm-human-task/jbpm-human-task-workitems/src/test/java/org/jbpm/task/wih/HTWorkItemHandlerCDITest.java

If you debug those tests you will see where the events are being emitted and observed  :) 

Cheers
--------------------------------------------------------------

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

Start a new discussion in jBPM at Community
[https://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/20121001/c86ab0f5/attachment.html 


More information about the jboss-user mailing list