Understanding Neo Dataflow

Dataflows are structured sequences of steps designed to build, customize, or transform APIs or process data. You can consider them as flow diagrams, where arrows connect different components to visually convey a process's logical steps. In dataflows, we have building blocks (similar to flowchart components) that perform certain tasks. For instance, the Trigger Block initiates the dataflow, the API Request Block calls external APIs, and the Script Block injects business logic. Within each block, you can use the DAO (Data Access Object) functions to interact with different blocks, collect data, and manipulate data as needed.

Relationship Between Blocks

Blocks in a dataflow are connected by connector- lines that show how data moves from one step to the next. You can link as many blocks as needed in a logical sequence. The relationships between blocks are defined using conditional statements—similar to a switch statement—which allow you to create multiple execution paths from a single block.

Once conditions are evaluated, if a block meets its condition, the dataflow will follow that path and execute the next connected block. If the condition isn’t met, an alternative path can be defined and executed instead. You can set these conditions using DAO methods or standard JavaScript.

Additionally, if a block receives input from multiple sources, you can use OR/AND logic gates to control its execution. For example, if Block C receives input from both Block A and Block B, using AND logic ensures that Block C runs only when the conditions from both A and B are met.

See the below image for a representation of a Dataflow with an AND gate