Activiti loops between two task repeatedly

Showing results for 
Search instead for 
Did you mean: 
Member II

Activiti loops between two task repeatedly

Hi ,

I am using activiti 5.10, recently, I have encountered a problem.

I have one workflow with a start event, an end event, and 3 userTask nodes.

A very simple activiti workflow.

The question is, when complete userTask1, the flow go to userTask2, it is OK.
After I complete userTask2, the flow will goto userTask3 as the flow designed.
But actually, the current activity goto userTask1, the I complete userTask1, goto userTask2, userTask1.
Seems the activiti engine always loop between userTask1 and userTask2.

I overwrite UserTaskActivityBehavior.leave method, try to print the outgoingTransitions.

When it works correctlly, logs shows as below:

But, in my case: logs show as below, missing sequence flow: flow1.
outgoingTransitions: [(userTask1)-->(userTask2)]

After I restart my tomcat, then the activiti works well. Is it a deployment issue?

Can anyone have an idea regarding this question, thanks.

2 Replies
Senior Member

Re: Activiti loops between two task repeatedly

Please share your bpmn file that the issue occurred.

However, the version is too old anything. I recommend you to upgrade to 5.22.0.

Alfresco Employee

Re: Activiti loops between two task repeatedly

If you found that the issue was fixed by restarting tomcat then I would say it does seem likely to have been a deployment issue.