Pathway trigger#
The Pathway trigger node gets triggered when a Pathway is updated or activated.
Keep in mind
If you want to use the Pathway trigger node for a workflow, add the node to the workflow. You don't have to create a separate workflow.
The Pathway trigger node gets triggered for the Pathway that it gets added to. The Pathway trigger node can be used to trigger a Pathway to notify the state of the workflow.
Node Reference#
- Events
- Active Pathway Updated: triggers when this Pathway is updated
- Pathway Activated: triggers when this Pathway is activated
Example Usage#
This Pathway allows you to receive a message on Mattermost when a Pathway is updated. This example usage Pathway uses the following nodes. - Pathway trigger
1. Pathway trigger node#
Open the Pathway where you want to add the Pathway trigger workflow. Add the Pathway trigger node to the workflow.
The Pathway trigger node will trigger the Pathway when the Pathway gets updated.
- Select 'Active Pathway Updated' from the Events dropdown list.
The node triggers the Pathway when the Pathway gets updated.
2. Mattermost node (post: message)#
This node will send a message in the workflow
channel on Mattermost.
- First of all, you'll have to enter credentials for the Mattermost node. You can find out how to enter credentials for this node here.
- Select a channel from the Channel ID dropdown list.
-
Click on the gears icon next to the Message field click on Add Expression.
-
Enter the following message in the Expression field:
The Pathway {{$workflow.name}}, was updated.
.$workflow.name
returns the name of the workflow. - Click on Execute Node to run the workflow.