Skip to content

Commit 2857eff

Browse files
authored
Update build.md
Added the Source object variables section in Context variables
1 parent bf677a6 commit 2857eff

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

content/en/workflows/build.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,10 +100,11 @@ An example of a workflow with a single step that sends a message to a Slack chan
100100

101101
Creating useful workflows sometimes necessitates passing data from one step to another, or configuring steps that act on data from the workflow's trigger source. You can perform this kind of data interpolation with context variables.
102102

103-
Context variables come in three varieties:
103+
Context variables come in four varieties:
104104
- A small collection of standard **workflow variables** are present in all workflows.
105105
- Some steps come with built-in **step output variables** that allow you to pass data from that step to a subsequent step in your workflow.
106106
- **Trigger variables** are passed into the workflow by the triggering event.
107+
- **Source object variables** are passed into the workflow by the triggering event.
107108

108109
The **Context Variables** tab for each step provides a map of all context variables available to that step.
109110

@@ -140,6 +141,15 @@ You can pass trigger variables into a workflow as inputs. Workflows accept a JSO
140141

141142
For more information on triggering workflows, see [Trigger a workflow][2].
142143

144+
### Source object variables
145+
146+
The Source object variables are properties of the triggering event that are resolved at execution. The variables available in the workflow will depend on the type of trigger that initiated the workflow instance. For example, if the workflow instance is triggered by a monitor, the monitor ID variable is available using `{{Source.monitor.id}}`. In case the workflow is triggered by a security signal detection or notification rule, the signal ID is available using `{{Source.securitySignal.id}}`.
147+
148+
All the variables of the Source object are visible in the Context Variables tab.
149+
150+
{{< img src="workflows/context-variables-tab-source-object-variables.png" alt="The Source object variables in the Context Variables tab" >}}
151+
152+
143153
## Further reading
144154

145155
{{< partial name="whats-next/whats-next.html" >}}

0 commit comments

Comments
 (0)