Skip to main content

Components

In Superflow, Projects consist of Components. You can create logic using Workflows and Functions and store data using Data Collections and Variables.


Example: Loyalty Points

To give a better understanding of what the different Components do, let's have a look at a simple loyalty points Project. This Project will reward customers with points for each purchase they make.

1. Workflow

Create a Workflow called "Order Created" that triggers every time a new order is created.

Add Workflow

2. Function

Within the Workflow, use a Function to calculate the number of points that are awarded, based on the total value of the order.

Add Function

3. Data Collection

Store the customer's reward points in a Data Collection called "Reward Balance".

Create entry

Now everytime a Customer places an order the Workflow will be executed. The amount of reward points will be calculated by the Function and stored in a Data Collection.