Global Variable

You are currently viewing the documentation for the latest version (2.2.0). To access a different version, click the "Switch version" button located in the upper-right corner of the page.

■ If you are not sure which version of the product you are currently using, please feel free to contact Mech-Mind Technical Support.

Description

A global variable can be accessed and used by all projects under the same solution. It enables data sharing across different projects for consistent data management and transfer.

Usage Scenario

This Step is used in scenarios requiring data sharing across different projects.

Workflow

The process of configuring this Step is as follows:

workflow
  1. Confirm that variables have been created. If not, open the Global Variable Management window to create one.

  2. Select the variable name.

  3. Select the operation to perform on the global variable: Save or Retrieve.

  4. Configure the ports to form a data flow.

  5. Run the Step.

Input and Output Description

The Step’s input and output ports depend on the selected operation type:

  • When Save is selected, the Step displays the Data to Save input port. The output of other Steps can be connected to this port to save data to variables.

  • When Retrieve is selected, the Step displays the Retrieved Data output port. The data output by this port can be connected to the input ports of other Steps to retrieve data from variables.

Parameter Description

Parameter Description

Variable Name

The variable name is the unique identifier of the global variable. Click the Open the editor button to manage global variables in Global Variable Management under the current solution by performing operations such as adding and deleting.

To save data to a new variable, open the editor and add a variable first. To retrieve data from an existing variable, select an existing variable.

Operation

Select whether to save data to the variable or retrieve data from the variable.

  • Save: When this option is selected, the Step will display an input port for connecting to an output port of another Step to save data to the variable.

  • Retrieve: When this option is selected, the Step will display an output port for connecting to one or more input ports of other Steps, so as to retrieve data from the variable.

Retrieve All

Once this parameter is selected, all data stored in variables can be retrieved at once.

Only visible when the operation type is Retrieve and the variable mode is Queue.

Troubleshooting

  • For common errors, see Error Code List.

  • If the error code is inconsistent with the error message, please contact Technical Support for help.

Is this page helpful?

You can give a feedback in any of the following ways:

We Value Your Privacy

We use cookies to provide you with the best possible experience on our website. By continuing to use the site, you acknowledge that you agree to the use of cookies. If you decline, a single cookie will be used to ensure you're not tracked or remembered when you visit this website.