A workflow executes its elements along its path one after another. Using asynchronous workflow execution, we can change this behavior and actually execute workflows in parallel.
We will need to build a new workflow.
For the first example, we will reuse the sleep workflow as well as the getNow
action we created in the Waiting tasks recipe in this chapter. (3.13.1 and the com.packtpub.Orchestrator-Cookbook
module in the example pack).
We will see two examples to demonstrate the asynchronous feature.
Here are some basics:
Create a new workflow and create the following variables:
Name
Type
Section
Use
sleepTime
Number
IN
It defines the time the workflow should sleep
wfToken
WorkflowToken
Attribute
The workflow token of the asynchronous workflow
Drag an Asynchronous workflow task into the schema.
When prompted, enter the name of the sleep workflow we created in the Waiting tasks recipe in this chapter ...