Creating a Flow without a Trigger

When creating a flow in the Flogo App, you can create it without a trigger. This method of creating a flow is useful when the logic for the flow is available but you do not know just yet what action should activate the flow. You can start by creating a flow with the logic and attach one or more triggers to the flow at a later time. To create such a flow select Configure flow inputs and outputs.

The flow details page opens displaying the Input Settings tab of the Flow Inputs & Outputs tab. You create your flow contract in the Flow Inputs & Outputs tab. Follow these steps to create a flow without a trigger:

Procedure

  1. Enter a JSON schema containing the input fields to the flow in the Input Settings tab.
  2. Enter the JSON schema containing the flow output fields in the Output Settings tab.
  3. Click the left facing arrow on top of the blue label when done to retract the Flow Inputs & Outputs page.
  4. On creation, the flow contains a Return activity by default. Click and drag the Return activity to the right to make room to add other activities.
  5. Hover your mouse over the shaded square to expose the add activity button (). Click the add activity button to add an activity.
    After adding an activity, be sure to configure its properties by clicking on the activity tile. If one or more activities have errors in their configuration, the Errors panel on the lower right of the page shows the number of errors in the flow. Click the Errors panel to see the errors.

    Fix the errors before proceeding.

  6. Continue adding activities by clicking the successive () buttons. To add an activity between two exisiting activities, you can drag the activities to the right in order to make room for the new activity then click the button to add the new activity.
  7. Click the Return activity to configure the parameters that the flow outputs after completing execution. The Return activity displays the parameters that you had configured in the Output Settings tab of the Flow Inputs & Outputs dialog.

    Anything that the flow outputs after execution must be mapped into the Return activity of the flow. If any trigger needs to send a response back to a server, its output must be mapped to the output of the Return activity.

  8. When you are ready to add a trigger, refer to Adding Triggers to a Flow to add one or more triggers to the flow. For triggers that need to send back a response to the server, you must map the flow output (elements in the Return activity) to the reply of the trigger (Map from Flow Outputs tab in the trigger configuration dialog).