Saved flow triggers
Save a set of trigger definitions as a reusable trigger. Enable flow authors to select the saved trigger from some or all application flows. Specify whether flow authors can see the trigger details or add conditions to the trigger.
Benefits
- Allow flow authors to select predefined trigger definitions without the hassle of creating a trigger.
- Push changes to every flow that uses a saved trigger rather than having to update each flow manually.
- Reuse trigger definitions in multiple flows.
UI elements
The Workflow Studio home page displays a Triggers option in the list of available components and the list of new components.
- 1. Action controls
- Redo or undo an action that you have performed while creating the trigger.
- 2. View and publish buttons
- View the draft version of the trigger for all latest changes or view the published trigger. Publish the trigger for users to see.
- 3. Auto-save icon
- View whether your changes are automatically saved.
- 4. Trigger type & table section
- Select the trigger type and table from the available options.
For more information about trigger types, see Workflow Studio flow trigger types.
- 5. Conditions section
-
Specify the conditions for the trigger. Add more conditions as you need.
You can allow flow authors to view the conditions or to view and add more conditions when they use the saved trigger in a flow. The changes don't affect the saved trigger.
- 6. Advanced Options section
-
Specify the user session requirements needed to start a flow in the Advanced Options section.
- When to run the flow
-
Determine the type of session that can trigger the flow, whether to run the flow when triggered by certain users, and which tables can trigger the flow.
表 : 1. Interactive session drop-down menu options Option Description Only Run for Non-Interactive Session Flow that is triggered only in non-interactive sessions. See Non-interactive sessions. Only Run for User Interactive Session Flow that is triggered only in interactive sessions. Run for Both Interactive and Non-Interactive Sessions Flow that is triggered in all sessions. 表 : 2. User drop-down menu options Option Description Do not run if triggered by the following users Flow that doesn't trigger for a selected list of users. Select the Add User icon ( ) to add users to the list.
Only run if triggered by the following users Flow that triggers only for a selected list of users. Select the Add User icon ( ) to add users to the list.
Run for any user Flow that runs for any user. 表 : 3. Table drop-down menu options Option Description Run only on current table Flow that is triggered only for the selected table. Run on current and extended tables Flow that is triggered for the selected table and any extended tables. - Where to run the flow
-
Determine whether to run the flow in the background or in the current session.
Option Description Run flow in background (default) Flow that runs asynchronously in the background. Use this option for flows that don't require immediate updates and to allow other system processes to run at the same time. Run flow in foreground Flow that runs synchronously in the current session. Use this option to provide immediate updates to an end user. For example, if a flow opens a task after the previous task closes, use this option to open the next task immediately after a user closes one. 注:Running a flow in foreground may block the current session thread and prevent user input until the flow finishes. Avoid running flows in the foreground when they contain actions that cannot be interrupted, such as actions that run script. Actions or flow logic that pause a flow will not block a session.