Skip to content

Create a Workflow - Control Flow#

The left side editor will control will provide components and new workflows for the user to edit. The pre selected tab will be Tasks.

In Tasks the user can search for the task he requires. Tasks can be grouped by categories and sections. In order to add them to the workflow the user can drag and drop the task.

WFlow0

To create a new workflow for the automation controller, select the workflows tab, click the plus sign located on the left side of the page. The button wil prompt the user to choose what type of renderer he wishes to use. For Control Flow, select Control Flow.

WFlow1

Once the workflow is created, it can be edited by clicking on the pencil icon located on the right of the plus sign.

WFlow2

WFlow3

In the Edit Page pop-up, the name and color can be changed. The workflow can also be exported by downloading or copying to clipboard. The editor information as a json file can also be edited, but if invalid may impact negatively the renderer.

WFlow4

At this time, any task can be added to the workflow to create a new behavior. As an example, we will create a handler for an equipment state change.

Firstly, add an On Equipment Event task dragging the object to the workflow; a block will be created and displayed in the workflow page. Do the same for the Log task and a block will be created and displayed as well.

WFlow5

Then, it is necessary to perform some configurations.

For Control Flow, the configurations can be made by selecting the task and using the right pane. The pane will show the settings and the Inputs and Outputs.

Clicking on the gear icon will open the traditional settings wizard. The caption of the task can be edited to show any message and used with an interpolation of values.

If the user changes the default messages to Success!!!, notice the caption of the task will change. The user can also add and delete inputs and outputs.

WFlow6

After all is done, save by clicking on the Save button in the upper left side of the page.

For Control Flow, tasks are only valid if their color is not faded out, if the tasks are detached from a trigger task and faded, they are disabled and will not be considered. A block of tasks can also be explicitly disabled, by right-clicking and selecting disable.

WFlow7

Tasks can also be duplicated, collapsed or deleted, through the right-click action.

Updates can be made, when the yellow update button is available in the right pane.

WFlow8