How to fix error exception when call subflow which is setting "wait for a duration flow logic" ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-08-2020 08:07 PM
Phenomenon:
I added "Wait for a duration flow logic" and set "wait for 3 second(s)" before the "Update Alert Record" action in my Subflow, as shown in the image below.
Then, on the Scheduled Job side, when the above Subflow was called synchronously, an exception was generated.
The content of the exception is "com.glide.plan.runners.FlowObjectAPIException: The current execution is in the waiting state".
Why do exceptions occur? How to solve it? Could you please tell me?
Postscript:
When I call the above Subflow asynchronously, no exception is raised. I'd like to know why it doesn't happen, but I don't want to do the asynchronous method.
- Labels:
-
flow designer
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-08-2020 08:36 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-08-2020 09:45 PM
Hi surajp,
Thank you for your reply.
I tried it the way you recommended.
I created another Subflow that wrapped the original Subflow.
Then, I tried to call a new Subflow on the ScheduledJob side, but still got an Exception. It seems that it cannot be solved yet.
If there is another method, please let me know.
Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-01-2021 01:32 PM
Same here. My guess is that they are avoiding ever having something sit-and-spin.
I think the only way around it is to add a new script action to your flow that calls gs.eventQueue.
Then, write a ScriptAction as a callback.
see
for details on event queue
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-24-2022 05:58 PM
You can create a new Activity that acts as a timer but in fact is a gs.sleep. Add an input parameter that takes seconds. The add a Script step that takes that input and multiply them by 1000 and set it on your gs.sleep(inputs.seconds*1000). Add that activity to your flow/subflow and you won't get the error anymore.