Page History
...
The JS7 - Workflow Editor allows variables to be declared. Clicking in the workflow editor panel will display the workflow properties where variables can be added:
ExplanationsExplanation:
- Order variables are declared by specifying a name and data type.
- If no default value is added then the order variable is mandatory, i.e. all orders have to specify a value for the variable.
- If a default value is added then
- the order variable is optional, i.e. orders can specify a value and otherwise the default value will be used.
- the final data type can be added that prevents the variable from being modified later on in the workflow.
- Default values accept constant values and JS7 - Expressions for Variables.
- Any number of order variables can be declared.
For order variables of data type "String" the workflow editor offers the following operations from the icons:
- The icon invokes facet entry mode.
- The icon invokes the list entry mode.
- The icon invokes the editor entry mode for values of variables
Editor Entry Mode
Clicking the icon brings up a popup window that offers more space for character input of variables:
The window size will adjust automatically if more characters are entered.
- The icon can be used to maximize the window size.
- The icon can be used to change the window length.
List Entry Mode
The icon invokes the list editor that is used to offer a list of values from which a user can select when adding an order to the workflow.
In the Workflows view when an order is added users select from the list of values like this:
Facet Entry Mode
The icon invokes the facet editor. Facets are regular expressions that are used to check user input to match a given pattern.
Regular expressions can be complex and lengthy. The facet editor offers the Add from Favorites link to select values from JS7 - Favorites.
In the Workflows view when an order is added user input is checked like this:
- Input that does not match the regular expression is denied and the order cannot be submitted.
- An information icon displays a tooltip with the message that has been added to the facet.
Using Order Variables
Order variables can be used in a number of places:
...