Skip to content

Create a Workflow - Data 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 Data Flow, select Data 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 Adjust State task and a block will be created and displayed as well.

WFlow5

Then, it is necessary to perform some configurations.

Firstly, the Equipment Event, opening the settings page for the specific block, clicking the button in the right side of the task and choosing the Settings option.

WFlow6

In the General tab of the opened pop up window, change the Name and choose the Equipment Event that will trigger this flow.

WFlow7

In the output tab, select each output and configure its type to Value, this means that we will use the value of the parameter in the system after the equipment value is converted to system data type, if we want the value before it is converted we should use RawValue.

WFlow8

For the adjust state task configurations click the button in the right side of the task and select Settings option.

WFlow9

Choose the Input Entity to Resource and choose the Resource Instance to adjust the state to.

WFlow10

Create a new link from the Equipment Event task State output to the Adjust State toState input.

WFlow11

In case you wish to duplicate an existing task, it is possible to use the Copy and Paste buttons, on the top ribbon:

WFlow12

A note can be added to the visual editor in order to comment on a particular situation or need. Just press the Note button on the ribbon and use the Settings button on the created element to edit a rich-text note.

WFlow13

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