Versions Compared

Key

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

...

Expressions are a means to dynamically calculate values for variables.  Names of variables are case-sensitive.

Example:Examples

  • true
  • 1
  • "STRINGsome string"
  • $VARIABLE$variable
  • $returnCode <= 3
  • $NUMBER $number + 1

Data Types

Boolean

The following constant values are supported: true, false

...

variable( NAME, label=LABEL, job=JOB, default=DEFAULT )

    • VARIABLENAME is a string expression for the name of the variable.
    • label=LABEL (optional) is the label of an instruction for which the variable is recalled. Consider that the label is not quoted. ExapmleExample: label=A.
    • labeljob=JOB (optional) is the name of a job for which the variable is recalled. Consider that the job name is not quoted. Example: job=MYJOB.
    • default=DEFAULT (optional) specifies a default value should the variable not exist.

Consider that a call to the variable function will fail if the variable is unknown and no default value is specified.

Built-in Variables

Built-in variables are available at the following scopes:

Workflow

  • $js7WorkflowPath
    • The unique name of a workflow. Consider that a 
  • $js7WorkflowPosition
    • The position of an order in the workflow.
  • $js7Label
    • The label of the current instruction for which an order is executed.
  • $js7OrderId
    • The order identifier.
  • $js7ControllerId
    • The Controller's identifier.

Job

  • $js7JobName
    • The name of the current job for which an order is executed.
  • $epochMilli
    • The number of milliseconds since January 1st 1970 until the start of the current job for which an order is executed.
  • $returnCode
    • The numeric exit code of the current job for which an order is executed.

Build-in Functions

  • now( format='yyyy-MM-dd hh:mm:ss', timezone='Europe/Berlin' )
    • The job start date. This date can be formatted using Java data qualifiers. Optionally a time zone can be specified, otherwise the UTC time zone is used.
  • scheduledOrEmpty( format='yyyy-MM-dd hh:mm:ss', timezone='Europe/Berlin' )
    • The date for which an orders is scheduled.