Flow is stuck at Wait for condition

SSA1
Giga Expert

Hi,

I have a issue where flow is stuck at wait for condition, my scenario is,

When agent selects ' Can this be remotely done' variable value  as 'Yes' Or "No', then the rest of the flow should execute.

But sometimes flow stuck at this step even though agent has selected Yes or No as a value.

But sometimes it works.

I have tried out enable timeout option but I observe that if agent doesn't selects any value even it will pass this step and execute rest of the flow activitie.

Without that , Is there any other way I can resolve this issue.

(what I want is, If agent hasn't selected any value for this ' Can this be remotely done' variable, It should remain at wait for condition in flow.

otherwise(If any value is selected for ' Can this be remotely done' variable, it should run the other activities in the flow.)

 

Appreciate any advise / guidance on this

 

10 REPLIES 10

Matthew Knight
Tera Guru

Hi SSA,

What script are you using on the wait for condition?

I would set it to something like this depending on your variable names.

// Set the variable 'answer' to true or false to indicate if the condition has been met or not.
if (current.can_this_be_done_remotely == "Yes"||current.can_this_be_done_remotely == "No")
	{
		answer = true;
	}
else
{
	answer = false;
}

Hi How to add a script to wait for condition, Please guide me

Are you able to send screenshots of the flow that you have so far?

Please see below I have blackout the variable name here, Please assume variable name as 

'can_this_be_done_remotely' is one of 'Yes' Or 'No'

 

find_real_file.png