Creating a Blank Flow (Flow without a Trigger)

You can create a flow in the Flogo app without attaching it to a trigger. This method of creating a blank flow is useful when the logic for the flow is available, but you do not know the condition under which the flow should activate. You can start by creating a flow with the logic and attach it to one or more triggers later.

Follow these steps to create a flow without a trigger:

    Procedure
  1. Click an app name on the Apps page to open the app details page.
  2. click Create. The Add triggers and flows dialog opens.Flow is selected by default.
  3. Enter a name for the flow in the Name text box.

    Flow names within an app must be unique.

  4. Optionally, enter a brief description of what the flow does in the Description text box.
  5. Click Create. The flow details page opens.
  6. Click Flow Inputs & Outputs to configure the inputs and/or outputs to the flow on the Input or Output tab respectively. See Flow Inputs & Outputs Tab.

    Mapping trigger outputs to flow inputs and flow outputs to trigger reply creates a contract between the trigger and the flow. Hence, when you attach the flow to a trigger later, you must map the output of the trigger to the flow input. You have the option to attach your flow to one or more triggers later after the flow has been created. See Attaching a Flow to One or More Triggers for details.

  7. Enter a JSON schema containing the input fields to the flow on the Input Settings tab and click Save.
  8. Enter the JSON schema containing the flow output fields on the Output Settings tab and click Save.
  9. 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 to the reply of the trigger.