Defines the how the variable will behave if no key is specified when the variable is accessed.
This setting can be used to simplify the script that writes values to variables or reads them. Usually, the key must be specified as a parameter in the script element :PUT_VAR or GET_VAR. However, this makes it difficult to ensure that values are stored with unique keys. By specifying a particular scope, you can simplify design of scripts that write to or read from the variable. For all values of scope except Freely selected, the key is optional, and the default key used to access the variable if no key is specified depends on the characteristics of the task that is accessing the variable.
|Scope||Key optional||Key used to access variable if none is specified|
|Freely selected||✘||Runtime error U00003712 will result if no key is specified.|
|Host||✔||The name of the agent on which the task is running|
|Task||✔||The name of the running executable object|
|Workflow name||✔||The name of the parent workflow of the task
|Workflow session||✔||The run ID of the parent workflow in which the task is running|
||✔||The name of the executing user|
|User session||✔||The run ID of the user session
Note: The entry (row) corresponding to the user session will be deleted when the user session ends.