- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-07-2023 07:11 AM - edited ‎09-07-2023 07:14 AM
i'm trying to do scripting in a the wait for condition where the wait for condition should wait till the variable 'ready_to_begin' is set to 'Yes' or it should wait till the state is 'closed complete'. i have written the script below but the wait for condition does not wait it just evaluates to false and the flow continues. Does anyone have any suggestions please on how i can get this script to work in the wait for condition in flow designer:
Thank you
Harry
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-07-2023 09:16 AM
I think that the catalog variables are only checked/collected when the flow initially starts. You might need to do a loop or additional timed variable collection. Or possibly creating a BR on the record to update a system property or flow variable when that catalog variable is updated.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-07-2023 07:51 AM
Have you tried removing the "else { return 'false'}" portion of the statement? You might also want to enable timeout if you don't want the flow to wait indefinitely
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-07-2023 08:25 AM
hi @jonsan09, thanks. yes i have tried that but the wait for condition still does not wait.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-07-2023 09:16 AM
I think that the catalog variables are only checked/collected when the flow initially starts. You might need to do a loop or additional timed variable collection. Or possibly creating a BR on the record to update a system property or flow variable when that catalog variable is updated.