Please enable JavaScript to view this site.

The manual for the JobRouter developer

Navigation: System activities > Description of the PHP API for system activities > API methods > Other useful API methods

setSystemActivityVar(mixed $varKey, mixed $varValue): void

Scroll Prev Top Next More

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');