Variable Scopes
Each variable exists and has a value assigned to it within a single scope. A scope is the environment, or set of conditions, within which the variable and its value are relevant.
-
Runtime Scope: The variable is persistent over a single execution of the runbook.
-
Incident Scope: The variable is persistent over the lifecycle of an incident associated with a runbook. Some values are initialized before runbooks run. Successive runs of runbooks will be able to use the value of variables set in a previous run.
-
Subflow Scope: The variable is persistent within a subflow execution and is used to pass data between the subflow and its parent (calling) runbook. In a subflow scope, you are limited to subflow variables.
The scope is prepended to each variable name automatically whenever the variable is displayed or used outside the Variable Definition Editor. (The prefix is not shown within the Variable Definition Editor, since the variable is edited in a tab for that scope.)