getSystemActivityVar(mixed $varKey, mixed $defaultValueIfUnset): mixed |
Scroll Zurück Oben Weiter Mehr |
Ermittelt den Inhalt einer Systemaktivitätsvariable. Diese stehen über die Laufzeit einer Systemaktivität hinaus zur Verfügung, bis die Systemaktivität abgeschlossen wurde.
Parameter |
Typ |
Beschreibung |
---|---|---|
$varKey |
mixed |
Name der Systemaktivitätsvariable |
$defaultValueIfUnset |
mixed |
Standardwert für Systemaktivitätsvariable, sofern sie nicht explizit gesetzt worden ist |
Das Format der Rückgabe ist abhängig vom Typ der Systemaktivitätsvariable.
Beispiel:
$this->getSystemActivityVar('PRENAME'); // = Max
$this->getSystemActivityVar('LASTNAME'); // = Mustermann
$this->getSystemActivityVar('AGE'); // = 31
$this->getSystemActivityVar('DATE_OF_BIRTH'); // = 12.10.2020
$this->getSystemActivityVar(1,'Standardwert für 1. Beispiel'); // Systemaktivitätsvariable ist gesetzt, d.h. "1. Beispiel"
$this->getSystemActivityVar(2); // = 2. Beispiel
$this->getSystemActivityVar(3,'Standardwert für 3. Beispiel'); // Systemaktivitätsvariable ist nicht gesetzt, d.h. "Standardwert für 3. Beispiel"