Wait for condition for multiple tasks

Bogdan18
Tera Guru

Hello everyone,

I have an workflow with multiple layers of tasks and I have a problem with one of the wait for conditions. What happens is that I open 5 tasks at some point in the workflow and one of these 5 tasks when it gets closed it will open another task. The first 4 tasks are all going into an wait for condition so that the workflow doesn't end if and when on these 4 are closed. The 5th task is opening another task when it gets closed. This other task goes into the same wait for condition.

If the 5th task is being closed before the other ones then everything goes fine, the other task is being opened and then when the other tasks are closed the workflow closes out successfully.

If I close the first 4 tasks and then I close the 5th one the tasks associated with the 5th one gets opened but automatically is set on Closed Incomplete and the workflow ends.

Any idea how can I fix this behavior?

find_real_file.png

 

 

Thanks,

Bogdan

 

 

1 ACCEPTED SOLUTION

Mark Stanger
Giga Sage

Try a single 'Join' activity in place of your 2 'Wait for' activities you have currently.  It will cause the workflow to wait for all paths into it to complete before the workflow continues on. Your 'Wait for' activities shouldn't be necessary with a 'Join'.  Just make sure all of your task activities have their own 'Wait for completion' option selected.

View solution in original post

13 REPLIES 13

Akil
Kilo Expert

Hi Mark,

 

I am facing the same Problem with wait for Condition.

 

I cant use the Join activity because I had If condition before every trigger of task, not sure whether it will Yes or No,

 

What I can do in this situation.Please help

Akil
Kilo Expert

Hi Mark,

find_real_file.png

Hi Akil,

I think the Join Activity will work even in your situation. I also have several If conditions before the join activity and it still works great. Please have a look at my workflow and see if there is something that might help you.

 

find_real_file.png

Akil
Kilo Expert

Hi Bogdan,

 

I am seeing only 1 if condition for the workflow . But I am having multiple if Conditions, and before If Conditions I am having multiple wait for conditions until some variable come to that filed.So I need to wait till the dependent variables are getting filled  as well as the corresponding tasks to be completed.

 

Akil
Kilo Expert

Hi Bogdan,

 

From If Condition how you are connecting to Join for Both  Yes and No. It will reach Join either for yes or No, What you are doing if Join is incomplete or if Join is complete.

 

 

Thanks,

Akhil