Skip to main content
Skip table of contents

getVariableOrDefault (ProcessUtils)

Versionshinweise

25.6

Code

GROOVY

GROOVY
ProcessUtils.getVariableOrDefault(String name, Object defaultValue);

Beschreibung

Lädt die Variable aus dem Kontext des Prozesses für die weitere Verwendung.

Parameter

  • name - Der Name der Variable.

  • defaultValue - Der Standardwert, falls die Variable leer ist.

Rückgabe

Gibt den Variablenwert zurück. Gibt den Standardwert zurück, wenn die Variable nicht existiert.

Beispiele

GROOVY
String variable = ProcessUtils.getVariableOrDefault("Name", "defaultValue");
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.