Workflow Action: Save Variable Component

Workflow Action: Save Variable Component


The Save Variable component is used to store information in memory that can be referenced and manipulated at any time while the workitem is in the workflow.

Configuration Options

Name: The name assigned to this component.
Description Enter a description for the component.
Condition Type: If the condition returns true, then the Action will be performed. If condition returns false, then the Action will not be performed. If there is no condition specified, the Action will always be performed.
Expression: Any value that the workflow will store in memory. This value can be text, numbers or a formula.
Variable Name: The name of the variable where the expression will be stored.

*Note: All variables that are created with the Save Variable component are stored in memory in the form of: Name

In the following example the name defined in Variable Name will be: menuCounter
When comparing in a condition or manipulating within another Save Variable the memory variable,, will be used.

A sample of a condition could be:
If the system should only set this variable if the caller pressed ‘1’ in a menu, the Condition Type would be as follow:

Expression: workitem.digits == ‘1’

  • workitem.digits would be entered in the first field.
  • ‘==’ would be selected from the dropdown.
  • ‘1’ would be entered in the last field.

Here is a sample of how to use the Save Variable component:
If you would like to create a counter to increment every time a menu replays:
In the Begin State add a Save Variable component.

  • Set the Expression with a value of: 1.
  • Set the Variable with a value of: menuCounter.

In the State where the menu plays add Save Variable and configure as follows:

  • Set the Expression with a value of: parseInt( (parseInt command converts the value to an integer).
  • Set the Variable with a value of: menuCounter.

Each time the menu replays, the value in the memory variable workitem.menuCounter will increase by 1.

Click Here to Download Linked File

What’s a Rich Text element?

The rich text element allows you to create and format headings, paragraphs, blockquotes, images, and video all in one place instead of having to add and format them individually. Just double-click and easily create content.

Static and dynamic content editing

A rich text element can be used with static or dynamic content. For static content, just drop it into any page and begin editing. For dynamic content, add a rich text field to any collection and then connect a rich text element to that field in the settings panel. Voila!

How to customize formatting for each rich text

Headings, paragraphs, blockquotes, figures, images, and figure captions can all be styled after a class is added to the rich text element using the "When inside of" nested selector system.