Join in workflow not working properly

Walter Ferroli
Tera Contributor

Hello

 

I have a Workflow created for a Service Portal Item, that depending on the field values creates and then executes 3, 4 or 5 tasks. For instance, if the user is critical, then the task for security is created.

 

At the end, I have a "join" to collect all the answers and proceed with the request item closure. The thing is, when one or two of the answers are "false" (this means that the item executes 3 or 4 tasks, but not 5), the join goes by the "false" option, that keeps the RITM open, instead of closing it.

 

Unless the ITEM creates all the 5 tasks, and all of them come to a result, the join will fail. This means the RITM will remain open though all of its tasks have been completed, and I have to close it manually.

 

Any ideas to solve this?

 

I attached a picture of the whole flow, hope you understand it.

 

5 REPLIES 5

Hello. Finally I built an "Incomplete" outcome for the Join, and the RITM gets closed, one way or another.

 

My question now is: if the RITM opens 3 tasks (instead of 4 or 5) and gets "no" as a response for each If, it comes out closed as "Closed incomplete", which is not true. I cannot find a way to tell the join "if all the tasks that have been generated are closed complete, then close the RITM as closed complete". The join, when 3 or 4 tasks are created (I mean, one or two are not because of if clause becoming false), understands that something is missing and it closes as incomplete. 

I have tried: 

1) Setting a run script box, to which if "NOs" are connected, filling it with different options as activity.result = 'Completed", or "true", or "yes", but it didn´t worked.

2) Setting another join, to which if "NOs" are connected, and connect that join always to the main join, but it didn´t work either.

3) Setting a Return value box with the same options told in 1), still does not work.

 

I need to know what variable is completed (and what the value for that variable is) in order to capture it and set as condition for the join to become true.

 

Any ideas?