Flow Builder
Last updated
Last updated
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.
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.
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.
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.
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.
There are 2 ways to add new Nodes in your Flow -
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.
You can also add a node between any 2 nodes by clicked in + icon over the edge connecting the 2 nodes.
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.