Enums
Introduction
Create enumerations with any number of members and integrate them into the workflow by setting the enum as the data type of a variable.
Managing enums
To use and manage enums, you must first ensure that you are logged in as an active editor and then check that the workflow is not active.
Adding enums
You can create enums in the “My Workflow” section. These enums can be integrated into the workflow via Get and Set nodes.
Removing enums
When you hover over an entry with the mouse, a “trash can” icon appears on the right-hand side. Clicking on this icon opens a dialog box in which you must confirm the deletion process.
Important: Enums can only be removed if they are not used as nodes in the workflow. If they are used, you must first remove the node from the workflow before you can remove the enum.
Sorting enums
In the list of enums, you will find an icon with two horizontal lines on the left side of each entry. If you click on it and hold down the button, you can move entries within the enum range. This gives you a better overview.
Duplicating enums
When you hover over an entry with the mouse, another icon appears on the right side to the left of the “trash can” icon. Clicking on this icon allows you to duplicate the enum with all its components.
Usages of enums
As soon as you add an enum as a node in the event graph, a usage is available. You can recognize this by an icon next to the name of the enum. Clicking on this icon opens a dialog box listing the usage of the enum with some details.
Configuration options
Adding members
You can add members in the Details tab of the corresponding enum. To do this, simply click on the plus icon in the header.
Removing members
When you hover over an entry with the mouse, a “trash can” icon appears on the right-hand side. Clicking on this icon will immediately remove the entry.
Sorting members
In the list of members, you will find an icon with two horizontal lines on the left side of each entry. If you click on it and hold down the button, you can move entries within the member area. This gives you a better overview.
Use in the workflow
Nodes in which enums are used include the To String, Literal, and Select nodes. To add an enum to the event graph using the Set or Get method, you can store your user-defined enum in a variable. To do this, specify your enum as the data type of your variable.