JBoss Community

"Hanging" process when interacting with jBPM5

created by Pawel P in jBPM - View the full discussion
My problem is "hanging" process after interacting with jBPM.
I start process (process with Human Task).
Everything works fine, process starts, human task is generating, but my app never end...
I think it "hangs" on CommandBasedWSHumanTaskHandler.
What am I doing wrong?
My code:

My problem is "hanging" process after interacting with jBPM.

I start process (process with Human Task).

Everything works fine, process starts, human task is generating, but my app never end...

I think it "hangs" on CommandBasedWSHumanTaskHandler.

What am I doing wrong?

 

Best regards

Pawel

 

My code:

KnowledgeBase kbase = createKnowledgeBase("BPMN2-MinimalProcess.bpmn");
StatefulKnowledgeSession ksession = createSession(kbase);
CommandBasedWSHumanTaskHandler commandTaskHandler = new CommandBasedWSHumanTaskHandler(
               ksession);
ksession.getWorkItemManager().registerWorkItemHandler("Human Task",
               commandTaskHandler);
 
Map<String, Object> params = new HashMap<String, Object>();
params.put("age", Integer.valueOf(14));
Collection<ProcessInstance> processes = ksession.getProcessInstances();
ProcessInstance processInstance = ksession
               .startProcess("MyProcess", params);

Reply to this message by going to Community

Start a new discussion in jBPM at Community