JBoss Community

Re: SyncWSHumanTaskHandler vs WSHumanTaskHandler

created by Florent GUERIN in jBPM - View the full discussion

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

Start a new discussion in jBPM at Community