SmartFlow is a product offering allowing you to create business logics called SmartFlows in a no-code fashion using a NodeRed editor.
Once created, the logic can be later used to create and control the lifecycle of Worker Node Solutions that could be deployed on EWX.
The solutions can be added to SmartFlow Playground or SmartFlow Worker Node Network. Once added, the logic is being downloaded and executed by Worker Nodes subscribed to the above Worker Node Network (WNN).
This page describes the steps for the deployment of a Worker Network Solution.
Once a Solution is created, the user can choose between "Yes" and "No" when asked if the Worker Network Solution is subject to production deployment. The diagram below demonstrates what happens following this decision from the user.
Once the Worker Network Solution is approved for deployment on a public pool, the user receives an email confirmation, and the Solution is added to SmartFlow Worker Node Network.
New user quick start guide on how to use basic functionalities of SmartFlow.
SmartFlow provides you with several main capabilities:
Creation of business logic (SmartFlow) using the no-code NodeRed editor, either from scratch or with pre-defined templates
Registering new Worker Network Solutions on the EnergyWebX parachain (EWX)
Control of lifecycle created SmartFlows as well as registered Solutions
To understand the basic process of what happens when creating and registering a SmartFlow, check out the Worker Network Solution deployment flow.
Before you can start using SmartFlow, you will need a subscription.
To subscribe:
Go to https://launchpad.energyweb.org/ and login using your existing credentials if you are an Energy Web Member, or the social login options (Google and Github).
Ensure you are in the SaaS environment of Launchpad by checking the toggle button on the top right. You will easily recognize the SaaS environment by its white theme.
On the left hand side menu, click on SmartFlow and then "Subscription"
Select the subscription relevant to you and proceed to the payment. The "EW Member" plan is only available for enterprises that are Energy Web members. Once your payment is completed, you subscription is active.
Assuming that you have an active subscription, you are ready to create a new SmartFlow. Click on SmartFlow in the left hand side menu, and click "Create new". Select "SmartFlow" in the pop un that appears and click "Continue".
On the templates choice screen, choose the template that is relevant to you or select "Create your own" and click "Select Template". In the following examples, we are using the EV Green Reward - EXAMPLE.
The next screen will give you more information on the template you selected. If it fits your needs, click "✔️ Use this template"
Give your SmartFlow a name and description and click "Save"
Populate the Solution Information details. You will be asked to select if your Worker Network solution is subject to production deployment or not. Choosing "No" will mean that your solution will only be deployed on the Playground SmartFlow Worker Node Network only. Choosing "Yes" will trigger a review process allowing your solution to be added to a public SmartFlow pool. For the full process, please see the following page.
Once you have filled in all the fields, press "Continue".
In the solution workload tab, in a Work Logic choose the SmartFlow you have created earlier or the one that is relevant to your current solution. Press "Continue".
Determine your solution expiration block and click "Register".
The Solution registration consists of two steps:
Solution registration on-chain
Adding to a solution group.
Activate your solution by clicking on the three dots on the Worker Network Solution card, and then selecting "Activate".
If you want to verify that your actions were correctly recorded on the blockchain: Go to polkadot.js interface choose workerNodePallet & the solutions method as shown below. On the top right, disable "include option" and click on the "+" symbol. You can then search for your solution using the namespace that you have chosen at registration.
You should be able to query and find the solution you registered. The "Work Logic" field indicates the IPFS CID where your SmartFlow logic is stored, while the "Status" reflects the current state of the solution.
Your new SmartFlow will appear under the menu SmartFlow > "Manage" as a draft. You can edit it using the NodeRed editor by clicking on the edit button on the top right of the flow Edit button A new tab will open with NodeRed editor, where you can make adjustments to your SmartFlow file:
If you make any changes, remember to save them using the "Save" button on top right of the editor
Go back to the SmartFlow Manage page, click on the three dots and choose "Publish to IPFS". You can now use your flow within the New Worker Network Solution Registration. The flow status will change to "Published"
Create a New Worker Network Solution by clicking "Create New" under SmartFlow and then choosing "Worker Network" and "Continue" in the pop-up.
After your solution is registered you will be automatically redirected to the SmartFlow Manage page and you will see your solution with the "In-Progress" status. Within a few minutes you should see two notifications on the top right informing you that your solution was added to a group successfully and created successfully. The solution will then appear with the "Paused" status.
After a few minutes, your solution will be active: