Team, Below image is my sample workflow
Green - Tasks (it might have an API call, function call, or webhook)
Yellow - Wait state
In this diagram, the red color marked portion needs to be executed parallelly but among that we need path1, Path2, and Path3 to be executed in linear fashion.
T2 has to start its execution after 9 states are completed. So it has to wait for all 3 paths to complete.
Question 1) Is it possible to put wait (
Workflow.sleep(some duration) ) for 3 states at a time?
I can achieve parallel execution using Async, but using
.get on the promise object will block my thread.
Question 2) Is it possible to achieve without blocking?
I tried using thenApply,handle on the promise objects but my workflow code has completed without executing this thenAppy and handle callbacks.
Awaiting your response, Thanks