Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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 Image Added icons:

  • The Image Addedicon invokes facet entry mode.
  • The Image Added icon invokes the list entry mode.
  • The Image Added icon invokes the editor entry mode for values of variables

Editor Entry Mode

Clicking the Image Added icon brings up a popup window that offers more space for character input of variables:

Image Added


The window size will adjust automatically if more characters are entered.

  • The Image Added icon can be used to maximize the window size.
  • The Image Added icon can be used to change the window length.

List Entry Mode

The Image Added 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.

Image Added


In the Workflows view when an order is added users select from the list of values like this:

Image Added

Facet Entry Mode

The Image Addedicon invokes the facet editor. Facets are regular expressions that are used to check user input to match a given pattern.

Image Added


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 (info) information icon displays a tooltip with the message that has been added to the facet.

Image Added 

Using Order Variables

Order variables can be used in a number of places:

...