Skip to main content

Update Process Parameters

1. What are Process Parameters

Process parameters primarily serve to simplify data transfer in workflows, especially those with sub-processes. We can define a parameter object in the process, temporarily used as a workflow field for storing, receiving, or calculating values, which can then be referenced by other nodes. However, once the process operation ends, the parameter values will be cleared.

2. What Problems Can Process Parameters Solve

  • They eliminate the need to define redundant fields in worksheets for workflow logic operations and data transfer, simplifying worksheet configuration;
  • By assigning the field values of the main process to the parameters of the sub-process, it enables the related data of multiple record objects to be passed to a single sub-process simultaneously;
  • If your sub-process data source is a single record object, and you select "After the sub-process is completed, then start the next node," then the subsequent main process nodes can use the field values inside the sub-process.

3. Supported Parameter Types

  • Parameter Type: Currently supports text, number, date, member, and department types. The parameter type needs to be configured correctly; during assignment, the corresponding field type is required.
  • Parameter Name: The name must start with a letter and must not contain Chinese characters.

Parameters do not have an initial value when created; they only have a value through assignment during process execution.

4. Assigning Values to Process Parameters

4.1 Update Parameters of the Current Process

First, set up the process parameters in the configuration. Then in the process, add an "Update Process Parameters" node to assign values to the parameters of the current process, treating the parameter as a field.

4.2 Assign Values to Parameters of a Sub-Process

Assign values to the parameters of a sub-process in the "Sub-Process Node":

  • First, add a Sub-Process Node in the process, select the data object, then choose to Execute Sub-Process.

  • If there are no parameters, you can click on parameter settings to quickly add sub-process parameters.

  • After setting the parameters, proceed to add fields, and you can pass initial values to the process parameters of the sub-process for use during the execution of the sub-process.