Local variables
Local variables are available only for the specific workflow and represented in Orchestration with cache and task variables.
As an interaction traverses a workflow, it accumulates data. For example, the Start Task is associated with the ENGAGEMENT_PREROUTED event. The Start Task contains a rich dataset related to the interaction and the data collected during pre-routing. To make this information available to downstream tasks, this data is available in the workflow cache.
The workflow cache is the term used to describe the collection of data available within the workflow. The cache is available to the Administrator user to facilitate advanced customization and configuration. To access cache, you can select Cache Variables in text boxes where you enter data. You can select the required data from the list of items that are currently available in the cache. To add or overwrite a cache variable, use the Result Mapping tab of the REST API or Azure Functions task. An example of a cache variable is an attribute list that Orchestration uses for routing.
You can also work with data on the task level. Orchestration creates task results when receiving result name and data. You can use task results in the task where you received the result and in all subsequent tasks of the workflow which are directly or indirectly connected with that task. Orchestration differentiates between:
To set up a task, configure task properties, the range of which differs depending on the task. With the REST API and Azure Functions tasks, you can add all types of variables as values to task properties. To add or overwrite a value in the task property, use the Destination field on the Result Mapping tab of the REST API task. You can see task properties in workflow instances.
Note:
If you remove or edit a variable from a self-service flow, you must also remove or edit the variable on the Orchestration workflow. Modify the downstream tasks such as Start Automation that uses the removed or edited variable, otherwise the workflow ends with an error during the call.