This recipe will show how to further improve and automate presentations in workflows by linking actions into them. This is done to present to the user only a specific list of options derived on runtime.
We will create a new workflow and reuse the action getElementFromArray
, which we created in the recipe Creating actions in Chapter 6, Advanced Programming (see the com.packtpub.Orchestrator-Cookbook2ndEdition
module in the example pack).
You should be familiar with the topics we introduced in the recipe Workflow presentations in this chapter.
Using the Orchestrator Client, create a new workflow.
Create the following variables:
Name
Type
Section
Use
string
String
IN
This is a placeholder for the linked action
number
Number
IN
This is used to select a value from an array
array
Array of string
Attribute
This can take values such as Mon, Tue, Wed, Thu, Fri, Sat, Sun
Create a log element and bind all variables...