-
1. Re: Areas to check if process is not moving ahead after a task is marked complete.
eaa Jan 4, 2013 3:01 AM (in response to sunilkrverma)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.
Best Regards,
-
2. Re: Areas to check if process is not moving ahead after a task is marked complete.
sunilkrverma Jan 4, 2013 4:29 AM (in response to eaa)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.
-
3. Re: Areas to check if process is not moving ahead after a task is marked complete.
thomas.setiabudi Jan 4, 2013 5:10 AM (in response to sunilkrverma)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?
Regards,
Thomas Setiabudi
Note: I use jbpm5.4 too
-
4. Re: Areas to check if process is not moving ahead after a task is marked complete.
sunilkrverma Jan 4, 2013 5:19 AM (in response to thomas.setiabudi)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.
Thanks
Sunil
-
5. Re: Areas to check if process is not moving ahead after a task is marked complete.
thomas.setiabudi Jan 4, 2013 5:34 AM (in response to sunilkrverma)1 of 1 people found this helpfulHi Sunil V,
In my Human Task Work Item Handler, this is the task completed handler (default) that I use
private class TaskCompletedHandler extends AbstractBaseResponseHandler
implements EventResponseHandler -
6. Re: Areas to check if process is not moving ahead after a task is marked complete.
roxy1987 Jan 4, 2013 3:16 PM (in response to sunilkrverma)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.
Regards.