This recipe will showcase how to send interactions between workflows. This is mostly used together with asynchronous workflows, which we will explain in the recipe Using asynchronous workflows in this chapter.
We need to be able to create two workflows.
We will reuse the getNow
action that we created in the recipe Waiting tasks in this chapter (see the com.packtpub.Orchestrator-Cookbook2ndEdition.helpers
module in the example pack).
This recipe requires us to create two workflows and then use them together.
First, we create the receiving part:
Create a new workflow using the setup shown in the following figure:
Create the following variables:
Name
Type
Section
Use
isExternalEvent
Number
Attribute Value: false
This is a setting to indicate where Orchestrator has to listen to for the event.
eventName
String
IN
This is a string that contains the event identifier.
endDate
Date
IN...