Creating a Blank Flow (Flow without a Trigger)
You can create a flow in 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:
- Click the app in the File Explorer tab of Visual Studio Code to open app details page.
- Click Create to create an empty flow.
- Edit the name for the flow. Flow names within an app must be unique.
- Optionally, enter a brief description of the flow in the Add description text box.
- Click Flow Inputs & Outputs to configure the inputs and/or outputs to the flow on the
Input or
Output tab respectively. For more information, 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, 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. For more details, see Attaching a Flow to One or More Triggers.
- Enter a JSON schema containing the input fields to the flow on the Input Settings tab and click Save.
- Enter the JSON schema containing the flow output fields on the Output Settings tab and click Save.
- 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.