Configuring Runtime Variables

Runtime variables are basically process variables which can be imported into a process from an external file, and whose life-cycle is limited to the duration of the computation, as they are not persisted in the database.

The Runtime Variables task facilitates importing these variables from an external files, which is particularly useful when you have a large number of process variables whose values change frequently.


Prerequisites

  • The process must contain a task with a 2 column dataset, which has the names and values of attributes. This task can be imported as a Microsoft Excel file, but this format can cause issues if the "@" symbol is used in the file to reference other process variables; in this case a CSV file is preferable.

  • The task must have a high priority in the process, to ensure it is executed before other process tasks, in order to apply the correct values to process variables.

  • Each process can contain only one Runtime Variables task.

Along with the Options tab, where you can configure your task, the following additional tabs are provided:


Procedure

  1. Drag and drop the Runtime Variables task onto the stage.

  2. Connect the Runtime Variables task to the task containing the two-column dataset with the process variables names and values.

  3. Double click the task, and configure it as described in the table below.

  4. Save and compute the task.

 Runtime Variables options:

Parameter Name

PO

Description

Attribute for names

nameatt

Select the column that contains the process variable names from the drop-down list.

Attribute for values

valueatt

Select the column that contains the process variable values from the drop-down list.

Overwrite the current value if the variable is already defined

overwrite

If selected, any values defined in the process for process variables with the same name, will be overwritten by the values defined here.

Once set, Runtime variables have priority over process variables at runtime.

Consequently, when a workflow is executed, variable values will be taken from:

  1. the corresponding runtime variable, if present

  2. the corresponding process variable, if present.

However, vault variables have priority over runtime variables.

 

Need to get in touch? https://www.rulex.ai/contact/ - Need a license renewal? https://rulex.atlassian.net/servicedesk/customer/user/login?destination=portals
© 2024 Rulex, Inc. All rights reserved.