- Print
- DarkLight
- PDF
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):
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 Name | Data Type | Description |
---|---|---|
root.prev_node_id | string | Previous node ID |
root.user_id | number | ID of the user, who created or changed the Task last |
root.end_time | number | Dynamic time of the timer start (e.g. a timer you need to wake you up at 8 a.m.) |
root.change_time | number | Task change time in unixtime format |
root.create_time | number | Task creation time in unixtime format |
root.task_id | string | Task ID generated by the Process |
root.node_id | string | Node ID |
root.conv_id | number | Process ID |
root.ref | string | Task 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):
Picture 2. Accessing task local parameters from the Editor