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.