Workflow - "Wait for Condition" activity

roomawakar
Tera Contributor

Hi All,

 

I have put the Wait for Condition activity in the workflow with the condition:

 

1. Approval is Approved

2. A particular catalog task should be closed

 

then only the workflow should move forward but the WF is not moving forward. The WF is getting stuck at the Wait for Condition.

 

Can someone please tell me what is the issue and how that can be fixed?

 

Thanks,

Rooma

12 REPLIES 12

RaghavSh
Kilo Patron

1. Refer the 1st commented line, set the answer as true or false and you are doping return.

2. Set the answer accordingly and check.

 

 


Raghav
MVP 2023

@RaghavSh Its not working even if I set the answer = true/false.

share your updated code.


Raghav
MVP 2023

Brad Bowman
Kilo Patron
Kilo Patron

A Wait for activity script returns true to continue to the next step.  You are using the structure of an If activity script for some reason.  You can remove the first 5 lines of your script, then change line 17 to

answer = true;}}

to end the script.