use of org.jbpm.services.task.wih.NonManagedLocalHTWorkItemHandler in project jbpm by kiegroup.
the class LocalHTWorkItemHandlerUtil method registerLocalHTWorkItemHandler.
public static TaskService registerLocalHTWorkItemHandler(KieSession ksession, EntityManagerFactory emf, UserGroupCallback userGroupCallback) {
TaskService taskService = HumanTaskServiceFactory.newTaskServiceConfigurator().entityManagerFactory(emf).userGroupCallback(userGroupCallback).getTaskService();
ksession.getWorkItemManager().registerWorkItemHandler("Human Task", new NonManagedLocalHTWorkItemHandler(ksession, taskService));
return taskService;
}
Aggregations