Flow Builder

Cosmocloud's Flow Builder is one of the most interesting and exciting parts of using Cosmocloud. This is the main engine that powers custom logics in APIs, SubFlows and every other place where you need some logic based processing to be done.

Flow Types in Cosmocloud

APIs

REST APIs are the essence of Backend Development, the most used way for your frontend (client) to talk to your backend layer. Every API has it's own flow which you can customise using the Flow Builder.

Checkout more on building APIs here.

SubFlows

SubFlow in Cosmocloud provides modular approach to build reusable piece of flow. It helps you to build a piece of code once and plug it in existing flow.

Checkout more on SubFlows here.

Flow Builder Basic Concepts

Nodes

Nodes are the individual boxes that represent one single functional component of your flow. Your flow would have multiple boxes linked together in a flowchart mode to define your APIs flow logic.

Edges

An edge is the connection path between 2 nodes. This edge informs the flow of processing order of your APIs nodes.

Sometimes, you will also find more helpful actions on your Edges, to either add more nodes or more information about the edge / flow in that particular context.

Adding new Nodes

There are 2 ways to add new Nodes in your Flow -

  1. You can add new nodes into the flow by clicking the Add Node box at the end of every branch of the flowchart, excluding when your flow is finished with a Response node.

  2. You can also add a node between any 2 nodes by clicked in + icon over the edge connecting the 2 nodes.

Deleting any Node

You can click on the X delete icon on any node to delete that particular node from the flow.

There are some nodes which cannot be deleted, such as Trigger Nodes, Executor Node, Placeholder Nodes, etc.

Last updated