Page History
...
- The predicate supports checking of the values of job arguments and of order variables.
- Variables support the following data types: string, number, booleanBoolean.
- Any jobs can add or modify order variables while an order is passing a workflow.
- A number of syntactical notations for variables are supported that provide access to:
- the current value of a variable (may have been modified by a previous job),
- the value that was returned by a specific JS7 - Job Instruction,
- the original value of the variable as carried by the order.
If a predicate makes use of a variable that does not exist then the order stops with a FAILED state, except when a default value has been specified for the variable.
...
- The following syntax can be used to access the current value of a variable:
$varName
${varName}
variable("varName")
orvariable('varName')
variable(key = "varName")
orvariable(key = 'varName')
- To avoid an order failing due to a non-existent variable, a default value can be specified with the following syntax:
variable("varName", default = "aString")
orvariable('varName', default = 'aString')
variable(key = "varName", default = "aString")
orvariable(key = 'varName', default = 'aString')
- Default values use one of the supported data types: string, number, booleanBoolean.
- If the variable name is used with the
key
attribute then the order of appearance of thekey
anddefault
attributes is arbitrary, i.e.variable(default = "aString", key = "varName")
is possible too. - If the variable name is used without the
key
attribute then the variable name has to be used as the first argument ofvariable(...)
.
...
- Boolean values are represented by the keyword
true
, the keywordfalse
or by a converted variable value - The keyword syntax with the predicate of an If Instruction is:
true
,false
. - A variable value of data type "string" can be converted to a Boolean data type with the
toBoolean
method using the following syntax:${varName}.toBoolean
variable(...).toBoolean
- If the variable value is not a boolean Boolean data type then the order fails with the If Instruction.
...
Overview
Content Tools