Create a dataflow
An EFM Dataflow enables you to define policies that control which data goes to which apps at which time.
The Dataflow Editor is a visual programming environment used to create dataflow models. A dataflow model is composed of blocks that do assigned tasks when requirements are met (a dataflow model is not a set of commands that are executed in sequence).
The following steps show a sample scenario of how to subscribe to a "System" DSlink metric CPU Usage, and then aggregate that into a moving 30 second average. See the Dataflow Editor User Guide for detailed instructions.
Create a dataflow:
Open the dataflow webpage at https://BrokerIP:8443/dataflow.html.
Navigate to Data > downstream > dataflow.
Right-click dataflow.
Select Create Dataflow to create a new dataflow called cpuMovingAverage.
Click Invoke.
Click the icon right after the dataflow name to open this data flow.

Subscribe to the CPU Usage metric:
Find the System link node in the data tree and select it.
Drag the the CPU Usage metric to the canvas.

Create a moving 30 second window of your CPU utilization:
Search for "realtime recorder" in the Blocks section. Then drag and drop it onto the dataflow canvas.
Click the + on the recorder block to add the “name 0” and “value 0” properties (to remove "nameX" and "valueX", click the - ).
Bind the “value” property from your subscription to the “value 0” property of the recorder block.
Enter cpu in the “name 0” property of the recorder block.
Set the “bufferSize” property to 0.
Set the “timeWindow” property to 30. You now have a moving 30 second window of your CPU utilization.

Drag the Aggregation block onto the canvas.
Bind the “output” property from the Realtime Recorder to the “input” property on the Aggregation block.
Enter cpu in the “column” property for the Aggregation block.
Select Average in the “method” property of the Aggregation block.

In the data tree, right-click the data node.
Left-click the Publish action and drag it to your canvas.
Bind the “output” property from the Aggregation block to the “Value” property on the “Publish” block.
In the “Path” property of the “Publish” block, enter /data/cpuMovingAverage.
Set the “autorun” property of the “Publish” block to true.

Now the CPU Average value is being published. This enables any EFM node/broker that connects to this broker to have access to the transformed data point under "/data" path.
Related documentation
See the Dataflow Editor User Guide for detailed instructions.