Search in sources :

Example 1 with NonManagedLocalHTWorkItemHandler

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;
}
Also used : TaskService(org.kie.api.task.TaskService) NonManagedLocalHTWorkItemHandler(org.jbpm.services.task.wih.NonManagedLocalHTWorkItemHandler)

Aggregations

NonManagedLocalHTWorkItemHandler (org.jbpm.services.task.wih.NonManagedLocalHTWorkItemHandler)1 TaskService (org.kie.api.task.TaskService)1