gardellajp [
https://community.jboss.org/people/gardellajp] created the discussion
"Re: jbpm 5.3 - GenericCommandBasedWSHumanTaskHandler and LocalTaskService, how to
use it?"
To view the discussion, visit:
https://community.jboss.org/message/744832#744832
--------------------------------------------------------------
I did this in a project:
| | StatefulKnowledgeSession session = |
| | JPAKnowledgeService.newStatefulKnowledgeSession(gewKnowledgeBase(), null,
getEnvoriment()); |
TaskServiceSession taskServiceSession = taskService.createSession();
taskServiceSession.setTransactionType(Constants.TRANSACTION_TYPE);
org.jbpm.task.TaskService client = new LocalTaskService(taskServiceSession);
SyncWSHumanTaskHandler handler = new SyncWSHumanTaskHandler(client, session);
handler.setLocal(true);
handler.connect();
session.getWorkItemManager().registerWorkItemHandler("Human Task", handler);
I did a library that modularize this, to handle close resources etc.
Hope it helps.
--------------------------------------------------------------
Reply to this message by going to Community
[
https://community.jboss.org/message/744832#744832]
Start a new discussion in jBPM at Community
[
https://community.jboss.org/choose-container!input.jspa?contentType=1&...]