Wait for condition in workflow is not working

Andrew161
Tera Contributor

Hi, 

I am trying to write a script inside wait for condition activity in Workflow. not sure why it is not executing. 

I have also set up two separate conditions so that based on the answer is set to true or false it should flow to the particular flow.

my script below 

find_real_file.png

Screen snap of the info message in the logs.

find_real_file.png

Conditions inside the Wait for Condition activity

find_real_file.png

Kindly help..

Thanks,

Andy

4 REPLIES 4

Geoff_T
Mega Sage

Hi, 

Just to clarify; 

The Wait for condition activity causes the workflow to wait at this activity until the current record matches the specified condition.

You are writing a glide record to query something that is not the current record; correct? I think this may be your issue.

 

Geoff

Hi, 

Thanks for your response. 

Actually, i have a UI Action button in the form which updates the record after changing the necessary fields i mentioned in the script. 

So once the record is updated this should be triggered. 

 

Your conditions on lines 9 and 13 are checking values that don't belong to the current record associated with the workflow though?

 

Geoff

They are checking the values of the current record. those values get updated when the UI action is triggered.

If any changes are needed to the script, please suggest them.

Andy