LSPS documentation logo
LSPS Documentation
Constants

A Constant is a global variable with a value of a basic data type, an enumeration data type, or a map of these data types. After its value has been initialized, it remains unchanged in its context.

Constants are initialized before model variables; hence calls to model variables return the value null. Therefore make sure not to use any context data when initializing constants.

To define a constant, do the following:

  1. In the GO-BPMN Explorer view, double-click the respective constant definition.
  2. In the Constants area of the displayed editor, click Add.
  3. In the Name text box, type the variable name.
  4. In the Type text box, type the data type of the constant value.
  5. Define the visibility:
    • Select the Public checkbox to make the constant accessible from importing modules.
    • Clear the Public checkbox to make the variable available only within the parent module.
  6. In the Value text box specify the value of the constant:

To call your constant in an expression, write its name.