Step 2: Create a flow in the app
A flow is used to implement the business logic as a process. A flow can consist of one or more activities that perform a specific task. Activities are linked together to create the logic of the flow. It is achieved by defining the order of execution of those activities. Also, it can contain conditional logic for branching. Every app must have at least one flow and in most cases, a trigger that initiates the flow. Here, a trigger is the entry point for events that receive data from external sources. A trigger can be a subscriber on an MQTT topic, Apache Kafka® topic, HTTP REST interface, or a specific IoT sensor.
In this step, we go through the creation of a new flow attached to a REST trigger. The ReceiveHTTPMessage REST trigger listens for incoming rest requests to invoke the rest service and generates a log message about the status of the invoked rest service.
Creating a Flow
- Procedure
- On the Flows page, click Create.
- In the Flow details section, provide the following details and click Create:
Name: RestService, Description: Optional description of the flow.
After the flow is created, an empty flow appears on the following screen. Here, you have two options for starting the process -
-
Choose the Triggers option to configure the triggers of the process.
-
Choose the Flow Input & output option to configure the flow of the process.
