Flow Action: Wait for condition where checkbox variable is checked

kchorny
Tera Guru

I need my flow to trigger a catalog task when a checkbox variable, port_assignments_complete, changes from false to true. I've created a business rule that runs whenever a specific task is updated and, if all rows in a MRVS meet specific conditions, this variable is set to true. This part works as expected.

However, I need my flow to wait until that variable is true, then continue on. I know I need to script the conditions in my 'Wait for condition' action because variables are not available to select from, but I can't figure out what my script should look like. 

I tried a script containing this single line, but it doesn't work - the flow continues on as if the condition has been met when it has not:
fd_data.trigger.request_item.variables.port_assignments_complete == 'true';  

I would appreciate any assistance with this.

 
1 ACCEPTED SOLUTION

Marcin20
Mega Guru

Hi,

I propose following approaches:

1) set a field value instead of a variable value, so that this field can be used in 'Wait for conditions' OR

2) create a Flow Variable assigning the above script and checking this Flow Variable value, this may require additional loop with 'Wait for a duration of time' flow logic.

 

Best Regards,

Marcin 

 

If my answer helped you in any way, please mark this answer as helpful and correct.

View solution in original post

6 REPLIES 6

I like this solution, and I might try it if my solution turns out to be problematic. See my reply to previous response.

can get to too many loops and fail out if the customer wants really fast response checks,  but the SLA/OLA for the task can be too long