@@ -71,3 +71,29 @@ For example, given a REST API that provides access to different types of record,
7171a subflow could be created to access the API and handle the response, using an
7272environment variable to identify which type of record should be accessed. Individual
7373instances of the Subflow can then be customised for those particular types.
74+
75+ ### Flow/Group level environment variable
76+
77+ Since 2.21, environment variables can be set for Flow or Group on their settings panel.
78+
79+ ### Predefined environment variable
80+
81+ Since 2.22, following predefined environment variables has been added that provides access to information about the node, group and flow.
82+
83+ - ` NR_NODE_ID ` - the ID of the node
84+ - ` NR_NODE_NAME ` - the Name of the node
85+ - ` NR_NODE_NAME ` - the Path of the node
86+
87+ The node's path represents a node's hierarchy in a flow. It is ` / `
88+ delimited IDs of the flow, enclosing subflows, and the node.
89+ - ` NR_GROUP_ID ` - the ID of the containing group
90+ - ` NR_GROUP_NAME ` - the Name of the containing group
91+ - ` NR_FLOW_ID ` - the ID of the flow the node is on
92+ - ` NR_FLOW_NAME ` - the Name of the flow the node is on
93+
94+ ### Accessing nested environment variable
95+
96+ Environment variable definition is searched from the bottom to the top
97+ of the node's definition hierarchy. ` $ parent. ` prefix can be added to
98+ environment variable name (e.g. ` $parent.NR_GROUP_NAME ` ) to move the
99+ start position of this search up one level in the hierarchy.
0 commit comments