[jboss-user] [jBPM] - Re: SyncWSHumanTaskHandler vs WSHumanTaskHandler

Florent GUERIN do-not-reply at jboss.com
Thu May 31 04:51:10 EDT 2012


Florent GUERIN [https://community.jboss.org/people/fguerin] created the discussion

"Re: SyncWSHumanTaskHandler vs WSHumanTaskHandler"

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

--------------------------------------------------------------
Thanks,

I implement it like this:

+  org.jbpm.task.service.TaskService taskService = new org.jbpm.task.service.TaskService(getEntityManagerFactory(), SystemEventListenerFactory.getSystemEventListener());+
+                              LocalTaskService localTaskService = new LocalTaskService(taskService);+
+                              SyncWSHumanTaskHandler syncWSHumanTaskHandler = new SyncWSHumanTaskHandler();+
+                              syncWSHumanTaskHandler.setLocal(true);+
+                              syncWSHumanTaskHandler.setClient(localTaskService);+
+                              getKnowledgeSession().getWorkItemManager().registerWorkItemHandler("Human Task", syncWSHumanTaskHandler);+
+                              JbpmHelper.taskService = localTaskService;+

So i think it should be fine, i will test it this afternoon.

Mauricio should have the answer for the deprecated case.
--------------------------------------------------------------

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

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/20120531/2684cd06/attachment.html 


More information about the jboss-user mailing list