V2/CMS Tutorial/User Tools/Creating Content/Automation/Expression

From Senfi Docs
Revision as of 17:27, 22 June 2021 by Elysia.Tan (talk | contribs)
Jump to: navigation, search

Add Expression

Note: Mandatory fields are marked with an ‘*’. The following steps assume that the user is already logged in.

Steps

  1. Go to the Automation Icon.pngAutomation tab.
  2. Select the EXPRESSION tab and then Add.pngADD NEW.
  3. Fill in Name of the Expression.
  4. Set the Type of the Expression by choosing from the Expression type.pngType dropdown list.
    • Immediate (Default): Expression is checked when new values are received for any of the selected Input Measurement.
    • Polling: Expression is checked periodically regardless of whether there are new values for any of the selected Input Measurement.
  5. Choose to Enable.pngenable or Disable.png disable the expression.
  6. Construct Expression.
  7. Select SUBMIT (top right corner) to create the expression.

Construct Expression

This section will guide you on how to construct an expression using the EXPRESSION EDITOR when adding an expression in the CMS. The goal here is to tell Senfi how to detect an event that you want to be notified of/should be responded to.

The Expression Editor is a graph-based Drag & Drop editor.

Expression Editor

Arrows coming in from the left of a node indicate its input and those going out from its right indicate its output.

Input & Output of a Node

Each Node falls into one of the following categories:

  • Asset Identifier
  • Input
  • Data Transformation
  • Logic
  • Result
  • Event

Data originates from Metric nodes, is transformed by Data Transformation and/or Logic nodes, and eventually consumed by Result & Event nodes.

See Node Type for more information about each Node Type.