In this tutorial, we will see how to stop a DataFlow from the FlowEngine.
To do this, we will use the node “Stop Dataflow“ on the “Onesait Platform Dataflows“ category,
Let's see how you can use that node. To do this, follow these steps:
Select the "FlowEngine Management" option from the menu:
Select the domain you want to work on:
Once you are in the domain, drag a node of type "Stop Dataflow" to the flow and double click on it to see its properties.
The following are the base properties:Name: The name that you want the node to have when viewing it within the flow.
Dataflows available: List of dataflows available to the user.
Dataflow: Dataflow selected in the previous box. This dataflow is the one that will be stopped. If msg.dataflowIdentification exists and has content, this value will be used insted of the base property.
Run the dataflow
Whenever a message reaches the node, it will try to stop the selected DataFlow. The result of the operation, and its state, will be returned in the msg.payload: