-
1. Re: jBPM straying after user task completed
roxy1987 Feb 19, 2013 10:09 AM (in response to lauradp)Looks like you have a problem with your UserGroupCallBack. The assignee of the task should be loaded by Call Back class and hence should be a valid jbpm user. If not then the task is not assigned and is not logged in the database.
-
2. Re: jBPM straying after user task completed
lauradp Feb 19, 2013 12:31 PM (in response to roxy1987)Hi,
Thansk for your answer.
HumanTask is always completed successfully.
The Service tasks following the human task sometimes (25%) doesn't start
Laura
-
3. Re: jBPM straying after user task completed
roxy1987 Feb 19, 2013 1:12 PM (in response to lauradp)Oh there is a service task after your human task. I thought your human tasks are not getting assigned and created. What are you using service task for?
-
4. Re: jBPM straying after user task completed
roxy1987 Feb 19, 2013 1:13 PM (in response to roxy1987)Just replace you service task with a script task that prints a statement. Just to check if there is something wrong with the process or with the way you implement the service task.
-
5. Re: jBPM straying after user task completed
lauradp Feb 19, 2013 3:54 PM (in response to roxy1987)Same behaviour,
1 process each 4 strayes :-(
-
6. Re: jBPM straying after user task completed
roxy1987 Feb 19, 2013 4:30 PM (in response to lauradp)So the statement is not printed? Will it be possible for you to attach your process definition?
-
7. Re: jBPM straying after user task completed
lauradp Feb 20, 2013 6:23 AM (in response to roxy1987)Here you are....
-
Process.bpmn.zip 3.2 KB
-
-
8. Re: jBPM straying after user task completed
roxy1987 Feb 20, 2013 9:35 AM (in response to lauradp)Since your process did not print the statement, so well I looked for problems in your human task. Only thing I could find is the comment parameter of the node which is empty. It cannot be left null. I dont know if it is the root cause but leaving it blank results in a weird behaviour.
-
9. Re: jBPM straying after user task completed
lauradp Feb 20, 2013 9:54 AM (in response to roxy1987)I don't think the behaviuor is due to the process definition, since it happens randomly.
By the way the human task appears as completed on the task table of the database.
-
10. Re: jBPM straying after user task completed
roxy1987 Feb 21, 2013 5:43 PM (in response to lauradp)Okay. I think I know what is wrong with your code. I believe you are not completing the workitem but completing the task.
Just add the code WorkItemManager.completeWorkItem(workItemId, <arguments if you have any other wise null>);
This will move your workflow forward.
Regards.
-
11. Re: jBPM straying after user task completed
lauradp Feb 22, 2013 4:36 AM (in response to roxy1987)You mean that:
responseHandler = new BlockingTaskOperationResponseHandler();
jBPMClient.complete(taskToRun, user, null, responseHandler);
is not enought???
Laura
-
12. Re: jBPM straying after user task completed
roxy1987 Feb 22, 2013 9:35 AM (in response to lauradp)I believe so. I removed the workitem completion code and tried it just with TaskClient.complete(...), it just completed the task and did not signal the workflow. So yeah.
-
13. Re: jBPM straying after user task completed
thomas.setiabudi Feb 25, 2013 1:34 AM (in response to lauradp)Hi,
Have you solved this issue?
Do you restart the JBPM server before completing a task?
I got a similar problem here:
https://community.jboss.org/thread/221686?tstart=0
but my setup is I am using JBPM Console Server and Human Task Service that comes with JBPM5.4 Final Full Installer, and I am not restarting the server before completing tasks.
Regards,
Thomas Setiabudi
-
14. Re: jBPM straying after user task completed
lauradp Feb 26, 2013 7:58 AM (in response to thomas.setiabudi)Hi Thomas
no, I have not solved my issue, and I don't restart my server before completing a task!
Now can't test roxy's suggestion, I'll try it as soon as possible.
bye
Laura