cancel
Showing results for 
Search instead for 
Did you mean: 

No error if none of the condition defined on sequence flow is satisfied

khushboo_gupta
Champ in-the-making
Champ in-the-making

I have a workflow where condition is defined on the sequence flows without any gateway, as shown in below diagram:

When none of the condition is satisfied, the workflow gets completed without giving any warning or error. 

I contrast to this, if such conditional flows would have given after a gateway, it give following error:

      Caused by: org.activiti.engine.ActivitiException: No outgoing sequence flow of the exclusive gateway 'idGateway' could be selected for continuing the process

So there is inconsistency in the behavior. In one case it gives error, in other process just completes. 

So my question is, is this an issue or as per design? If its an issue, is this resolved in latest Activiti version. I am using 5.16.4 version of Activiti.

1 ACCEPTED ANSWER

khushboo_gupta
Champ in-the-making
Champ in-the-making

Thanks Ciju, checked in Activiti6, it gives below error: 

org.activiti.engine.ActivitiException: No outgoing sequence flow of element 'startEvent1' could be selected for continuing the process] with root cause

View answer in original post

3 REPLIES 3

cjose
Elite Collaborator
Elite Collaborator

I don't think it as per design and it could be a bug! I suggest testing this in Activiti V6 & if you still find this issue in the newer version, it will be great if you can create an issue in Activiti project and make a pull request.

Cheers,

Ciju

khushboo_gupta
Champ in-the-making
Champ in-the-making

Thanks Ciju, checked in Activiti6, it gives below error: 

org.activiti.engine.ActivitiException: No outgoing sequence flow of element 'startEvent1' could be selected for continuing the process] with root cause

Thanks for testing this out and reporting back!