Execute workflow
The Execute workflow
action allows you to trigger another workflow from within your current workflow. This is useful for:
- Reusing global workflows across different parts of your application
- Breaking down complex workflows into smaller, manageable pieces
- Keeping your workflows organized and maintainable
By breaking down complex logic into reusable global workflows, you can build powerful, scalable features that can be easily reused across your application.
How to Use
Let's say you want to trigger a global workflow from a button's local workflow:
- Go to the
Actions
tab - Give your global workflow a name
- Pass parameters if needed (optional)
For example, to create a global workflow that logs a message to the console:
- Add a
Log
action - Access the
Events
tab to retrieve your defined workflow parameters
In your button workflow, add the Execute workflow
action and select the workflow you want to execute. You'll then be prompted to provide any required parameters.
When the button is clicked, it will execute the global workflow:
TIP
Use Execute workflow
whenever you find yourself repeating the same series of actions in different places, or when a workflow becomes too complex to manage.