Determines the content of a system activity variable. These are available beyond the runtime of a system activity until the system activity is completed.
Parameter |
Type |
Description |
|---|---|---|
$varKey |
mixed |
Name of the system activity variable |
$defaultValueIfUnset |
mixed |
Default value for system activity variable, if it has not been set explicitly |
The format of the return depends on the type of the system activity variable.
Example:
$this->getSystemActivityVar('PRENAME'); // = Max
$this->getSystemActivityVar('LASTNAME'); // = Mustermann
$this->getSystemActivityVar('AGE'); // = 31
$this->getSystemActivityVar('DATE_OF_BIRTH'); // = 12.10.2020
$this->getSystemActivityVar(1,'Default value for 1st example'); // System activity variable is set, that is "1. example"
$this->getSystemActivityVar(2); // = 2nd example
$this->getSystemActivityVar(3,'Default value for 3rd example'); // System activity variable is not set, that is "Default value for 3rd example"