Sets a system activity variable. These are available beyond the runtime of a system activity until the system activity is completed.
Please note: This function writes data to the database only after markActivityAsCompleted is called.
Parameter |
Type |
Description |
|---|---|---|
$varKey |
mixed |
Name of the system activity variable |
$varValue |
mixed |
New value for the system activity variable |
Example:
$this->setSystemActivityVar('PRENAME', 'Max');
$this->setSystemActivityVar('LASTNAME', 'Mustermann');
$this->setSystemActivityVar('AGE', 31);
$this->setSystemActivityVar('DATE_OF_BIRTH', '12.10.2020');
$this->setSystemActivityVar(1, '1. example);
$this->setSystemActivityVar(2, '2. example');