Parameters - a primer
  • 02 Jun 2023
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Parameters - a primer

  • Dark
    Light
  • PDF

Article Summary

Types of task parameters

  • Global
  • Local

Global parameters

Nodes in Corezoid processes contain a set of global parameters (see also).

To view the list of these global parameters, with a Process open in the Editor, open the Edit tab and click on a Node. In the Node menu, you need to go to the Parameters section and click on the notepad symbol to the right of the Value field. On clicking the symbol the window opens in which you need to open the Global tab (Picture 1):
global parameters

Picture 1. Accessing task global parameters from the Editor

Corezoid global parameters list is available for viewing in Condition, Copy task, Modify task, API Call, Call process, Queue, Set parameter, Sum, Reply to Process Nodes.

Task parameters - ALL the parameters that a specific task has. See the corresponding section for more details on working with tasks.

data.param

{{my process id}}

task system parameters
root.param -

task properties
task attributes

task metadata

Global parameters have the following names and data types:

Can only be accessed through "key-value" fields

Parameter NameData TypeDescription
root.prev_node_idstringPrevious node ID
root.user_idnumberID of the user, who created or changed the Task last
root.end_timenumberDynamic time of the timer start (e.g. a timer you need to wake you up at 8 a.m.)
root.change_timenumberTask change time in unixtime format
root.create_timenumberTask creation time in unixtime format
root.task_idstringTask ID generated by the Process
root.node_idstringNode ID
root.conv_idnumberProcess ID
root.refstringTask reference

Local parameters

Local parameters can be added to each node and task independently. To view the list of local parameters in the Editor, open the Edit tab and click on a process node. In the Node menu, go to the Parameters section and click on the notepad symbol to the right of the Value field. In the window that opens, open the Task tab (Picture 2):

local parameters.gif

Picture 2. Accessing task local parameters from the Editor