Attaching a Flow to One or More Triggers

If you had created a blank flow without attaching it to a trigger, you can attach it to an existing trigger that is being used by another flow in the same app.

A flow that was created without being attached to a trigger has its input and output parameters defined in the Flow Inputs & Outputs accordian tab. You can access it by clicking the blue bar with the same label. The output from the trigger is the input to the flow. So, you must map the input parameters defined in the Input tab of this dialog to the trigger output parameters. This mapping must be done in the trigger. The mapping creates a contract between the trigger and the flow and is mandatory for the flow and the trigger to interact with each other.

Procedure

  1. You can use one of these methods to attach a flow to a trigger:
    • From the app details page:
      1. Open the app details page by clicking on the app.
      2. Hover over No trigger, then click Add trigger.
    • From the flow details page:
      1. Open the flow details page by clicking on the flow on the app details page.
      2. Click the Add a new trigger icon ().
  2. If there are existing triggers in the app, the Select Existing tab displays the exiting triggers. To use an existing trigger click Select Existing and then click the trigger you want to use in the right pane. You also have the option to create a new trigger by selecting Select New tab and selecting a new trigger to create from the Triggers catalog. If there are no existing triggers in the app, you only see the Select New tab. Select a trigger from the Triggers catalog.
  3. For REST and GraphQL triggers, you will be prompted to enter additional handler setting details. Refer to the "REST Trigger" section in the TIBCO Flogo® Activities and Triggers Guide. Refer to the "GraphQL Trigger" section in the TIBCO Flogo® Activities and Triggers Guide.
    The trigger is created and you see its icon to the left of the Flow Inputs & Outputs accordian tab.
  4. Click the trigger icon to configure the trigger as needed. For REST and GraphQL triggers, be sure to map the trigger outputs to flow inputs and the flow outputs to the trigger reply.
  5. Optionally, attach the flow to additional triggers by clicking the icon and following the steps above.