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]

_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to