Variables types

There are different types of variables available in Nintex Automation Cloud. They are available in different tabs on the Variables panel to be used in your workflow as required.

Workflow variable

Workflow variables stores data and are used in actions within the workflow. They can be manually created and defined when designing the workflow and can be used to pass data from one action to other actions in the same workflow. These variables are available in the Workflow tab of the Variables panel. For more information, see Create a variable.

Form-based task variable

These variables capture data that are entered in forms as part of a form-based task action. They are available in a separate tab of the Variables panel and are generated automatically when you configure a form for the task action. This tab is only displayed if a form-based task has been configured for the workflow. The following categories are available:

  • Form-based task action name: Variables for the form-based task actions you add to the workflow. Form variables that correspond to controls that you add to the form in the task action are found in the Task responses collection and First response object. For example, if you configure a form for the Assign a task to multiple users action, the form variables are found in the Assign a task to multiple users variable category > Assign a task to multiple users Object > Task responses collection and the First response object.

    Form variables include language variables that enable context passing to workflows for language-based branching. These variables are available in the Form designer (Form translation tab > Variables panel) and are generated automatically when a translation language is added. Two helpful form translation variables are listed below:

    • Language Code variable: This text variable informs the workflow if the form has been translated into a language identified by a code that assigns letters or numbers to identify or classify the language.

    • Language Name variable: This text variable informs the workflow if the form has been translated into a language identified by a name.

  • Form URL: A variable that contains the URL to access the form.

  • Task name (Form link): A variable that contains a hyperlink to the form URL using the task name.

Start event variable

These variables capture data from the workflow start event. You can use these variables to reference data available in the associated start event. These variables are available in the Start event tab of the Variables panel. You cannot assign a different value to a start event variable once the workflow starts. Depending on the Workflow start events you select, one or more of the following start event variables may be available.

  • Start event variables: These variables represent data related to the start event, such as an identifier for the selected object (app start events). For example, an object variable called Workflow initiator corresponds to the user who triggers the event to start the workflow. (Available only in Nintex - Form start event).

  • Form variables: Form variables that are created for Start event forms are available as form variables in the Start event variables category in the Variables panel. These form variables correspond to controls that you add to a start form and are available when Form is selected as the Start event and captures data that users enter in the fields of a form. The variables are generated when you create a form control. An example is a variable that holds an email address entered into a web form (Nintex - Form). If a form variable is used in a workflow action and the form control is deleted subsequently, a warning message is displayed in the action configuration panel. You can resolve it by replacing the variable or deleting the variable. For more information, see Resolve deleted form control variables.

    The Workflow initiator object variable in the start event variables category holds the variables from the Context variables category in form variables and they represent data related to the current user.

    Form field variables include language variables that enable context passing to workflows for language-based branching. For example, variables that capture a translated language in a form can direct your workflow along a path with the Branch by condition action. These variables are available in the Form designer (Form translation tab > Variables panel) and are generated automatically when a translation language is added. Two helpful form translation variables are listed below:

    • Language Code variable: This text variable informs the workflow if the form has been translated into a language identified by a code that assigns letters or numbers to identify or classify the language.

    • Language Name variable: This text variable informs the workflow if the form has been translated into a language identified by a name.

Workflow instance variable

These variables represent data that are related to the current workflow instance An occurrence of a workflow. and are automatically populated when the workflow runs. For example, variables that capture the date and time the workflow started. These variables are available in the Workflow instance variable tab of the Variables panel. One helpful Workflow instance variable is listed below: 

Workflow type variable: This variable indicates whether the workflow is in development or production mode. When this variable is used in a workflow, it can be easily changed while testing. For example, in development mode, a set of variables can be used to point to test data or sites. When you have completed your testing, you can switch to use a set of variables in production that point the actions in the workflow to real data or sites. This variable automates the transition between development and production mode.

Workflow object variable

These variables are output variables of workflow connector actions and events. Use the object or its nested variables in other actions of your workflow or in task forms. For example, use the output variable of one action in your workflow as the input variable for another action. In task forms, you can use the data to populate a control, or you can drag and drop the variable on the designer canvas to display the data in your form. You can also use these objects in form rules and formulas. See Workflow objects for more information about using them in a form.