[jboss-user] [jBPM] - Re: Guide to creating custom human task service

Maciej Swiderski do-not-reply at jboss.com
Thu Jan 5 12:46:54 EST 2012


Maciej Swiderski [http://community.jboss.org/people/swiderski.maciej] created the discussion

"Re: Guide to creating custom human task service"

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

--------------------------------------------------------------
By default work item handlers use Mina connector for task client. So there are two options:
* create your workitem handler implementation that just extends default and override connect method
* for some work item handlers (for instance WSHumanTaskHandler) there is a dedicated method to set task client that can be used

What you need to do is to create task client instance that utilize hornetq client handler and client connector:

TaskClient client = new TaskClient(new HornetQTaskClientConnector("HornetQConnector",
                    new HornetQTaskClientHandler(SystemEventListenerFactory.getSystemEventListener())));
 
taskClient.connect(host, port);
 
 
// this method is not available for all handlers
handler.setClient(client);

HTH
--------------------------------------------------------------

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

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/20120105/4f898e23/attachment-0001.html 


More information about the jboss-user mailing list