2 questions: Which version of jBPM are you using? Are you using persistence for the process execution (or only for Human Tasks)? There was a bug in versions previous to 5.4 that caused the same behavior you are experiencing.
1) jbpm 5.4.0.
2) I am using persistence for both Human Task and Process ( both Task and ProcessIntanceLog tables are populated correctly).
Once the task is marked compleetd, I see that the status field in Task table is updated correctly to completed.
I debugged and found that it even goes to org.jbpm.task.event.MessagingTaskEventListener class and calls taskCompleted method also. But a call to List<EventTriggerTransport> targets = getTargets(key, generalKey); returns null;
I am using LocalHTWorkItemHandler and Spring.
Hi Sunil V,
I have not got any experience with LocalHTWorkItemHandler and Spring in jBPM but in my case, usually this was caused by the WorkItemHandler does not listen to the task complete event.
Do you restart the server / application that has the human task handler before completing the task?
Note: I use jbpm5.4 too
No, I don't start the server.
>>>Usually this was caused by the WorkItemHandler does not listen to the task complete event.
Is there a way to check if WorkItemHandler is listening?
Did you ever get chance to debug and see what kind of listener is being used in your case - in my case its org.jbpm.task.event.MessagingTaskEventListener.
1 of 1 people found this helpful
Hi Sunil V,
In my Human Task Work Item Handler, this is the task completed handler (default) that I use
private class TaskCompletedHandler extends AbstractBaseResponseHandler
I once had a similar issue because of a dumb mistake. I left the task name field blank in the process defination for the 2nd task in the process. So after completion of 1st task, it wont show me the next one. So I figured it out and made that change, it worked fine after that. May be you wanna check that. A task should have Name, TaskName and comment fields non empty.