Difference between revisions of "V2/CMS Tutorial/User Tools/Creating Content/Automation/Expression/Node"

From Senfi Docs
Jump to: navigation, search
(Created page with "<h1 class="main-heading">Node Types</h1> ===Asset Identifier=== ====Asset==== Used to identify the asset to be monitored based on its configured '''site''', the chosen '''mea...")
 
(Remove "attribute" as incoming nodes for "function", add "attribute" as incoming nodes for "Compare")
 
(10 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
<h1 class="main-heading">Node Types</h1>
 
<h1 class="main-heading">Node Types</h1>
 +
 +
Each Node falls into one of the following categories:
 +
* [[#Asset Identifier|Asset Identifier]]
 +
* [[#Input|Input]]
 +
* [[#Data Transformation|Data Transformation]]
 +
* [[#Logic|Logic]]
 +
* [[#Result|Result]]
 +
* [[#Event|Event]]
  
 
===Asset Identifier===
 
===Asset Identifier===
Line 13: Line 21:
  
 
====Location====
 
====Location====
Used to capture Building, Block or Level information about the asset that triggered the expression.
+
Used to capture zone information about the asset that triggered the expression.
  
 
'''Incoming Nodes:''' [[#Asset|Asset]]
 
'''Incoming Nodes:''' [[#Asset|Asset]]
Line 20: Line 28:
  
 
====Attribute====
 
====Attribute====
 +
Used to differentiate assets based on their [[V2/CMS_Tutorial/User_Tools/Creating_Content/Asset/Asset/Attribute|attribute]] value.
  
 
'''Incoming Nodes:''' [[#Asset|Asset]]
 
'''Incoming Nodes:''' [[#Asset|Asset]]
  
'''Outgoing Nodes:''' NIL
+
'''Outgoing Nodes:''' [[#Compare|Compare]]
 +
 
 +
<div class="important">Note: Attributes are case sensitive. Using the wrong case invalidates the Expression and it will not be evaluated. </div>
  
 
===Input===
 
===Input===
Line 60: Line 71:
 
* [[#Aggregate|Aggregate]]
 
* [[#Aggregate|Aggregate]]
 
* [[#Compare|Compare]]
 
* [[#Compare|Compare]]
 +
* [[#Function|Function]]
 +
* [[#Filter|Filter]]
  
 
====Filter====
 
====Filter====
 
Filters a range of values and outputs a subset.
 
Filters a range of values and outputs a subset.
  
'''Incoming Nodes:''' [[#Metric|Metric]] if '''range of values''' is chosen
+
'''Incoming Nodes:'''  
 +
* [[#Metric|Metric]] if '''range of values''' is chosen
 +
* [[#Function|Function]]
 +
* [[#Filter|Filter]]
  
 
'''Outgoing Nodes:'''
 
'''Outgoing Nodes:'''
 
* [[#Function|Function]]
 
* [[#Function|Function]]
 +
* [[#Filter|Filter]]
 
* [[#Aggregate|Aggregate]]
 
* [[#Aggregate|Aggregate]]
  
Line 91: Line 108:
  
 
'''Outgoing Nodes:'''  
 
'''Outgoing Nodes:'''  
 +
* [[#Compare|Compare]]
 
* [[#Function|Function]]
 
* [[#Function|Function]]
* [[#Aggregate|Aggregate]]
 
  
 
===Logic===
 
===Logic===
Line 103: Line 120:
  
 
'''Incoming Nodes:'''  
 
'''Incoming Nodes:'''  
 +
* [[#Location|Location]]
 +
* [[#Attribute|Attribute]]
 
* [[#Metric|Metric]]
 
* [[#Metric|Metric]]
* [[#Location|Location]]
 
 
* [[#Function|Function]]
 
* [[#Function|Function]]
 
* [[#Aggregate|Aggregate]]
 
* [[#Aggregate|Aggregate]]
Line 110: Line 128:
 
'''Outgoing Nodes:'''
 
'''Outgoing Nodes:'''
 
* [[#Logic|Logic]]
 
* [[#Logic|Logic]]
* Result
+
* [[#Result|Result]]
 +
 
 +
<div class="important">Note: When used with one Location Node, the input value should be the location's BBL ID. </div>
  
 
====Logic====
 
====Logic====
Line 123: Line 143:
 
'''Outgoing Nodes:'''
 
'''Outgoing Nodes:'''
 
* [[#Logic|Logic]]
 
* [[#Logic|Logic]]
* Result
+
* [[#Result|Result]]
 +
 
 +
===Result===
 +
====Result====
 +
Represents the result of a Logic Graph.
 +
 
 +
'''Incoming Nodes:'''
 +
* [[#Compare|Compare]]
 +
* [[#Logic|Logic]]
 +
 
 +
'''Outgoing Nodes:''' [[#Event|Event]]
  
 
===Event===
 
===Event===
Line 129: Line 159:
 
Specifies the event to be triggered when result of expression changes from '''True to False''' or '''False to True'''.
 
Specifies the event to be triggered when result of expression changes from '''True to False''' or '''False to True'''.
  
'''Incoming Nodes:''' Result
+
'''Incoming Nodes:''' [[#Result|Result]]
  
 
'''Outgoing Nodes:''' NIL
 
'''Outgoing Nodes:''' NIL
  
<div class="important">Note: This event refers to an event created within the CMS. See [[V2/CMS_Tutorial/User_Tools/Automation/Event|Add Event]] to learn how to add an event in the CMS.</div>
+
<div class="important">Note: This event refers to an event created within the CMS. See [[V2/CMS_Tutorial/User_Tools/Creating_Content/Automation/Event|Add Event]] to learn how to add an event in the CMS.</div>

Latest revision as of 07:27, 22 October 2022

Node Types

Each Node falls into one of the following categories:

Asset Identifier

Asset

Used to identify the asset to be monitored based on its configured site, the chosen measurement and tag values.

Incoming Nodes: NIL

Outgoing Nodes:

Location

Used to capture zone information about the asset that triggered the expression.

Incoming Nodes: Asset

Outgoing Nodes: Compare

Attribute

Used to differentiate assets based on their attribute value.

Incoming Nodes: Asset

Outgoing Nodes: Compare

Note: Attributes are case sensitive. Using the wrong case invalidates the Expression and it will not be evaluated.

Input

Metric

Outputs the value/s of a chosen metric. It can be set to output the last known value, or a range of values.

Incoming Nodes: Asset (Only one)

Outgoing Nodes:

Data Transformation

Function

Does value-wise transformations:

  • Get absolute value
  • Round to nearest integer
  • Round up
  • Round down
  • Custom Transformation
    • Add
    • Subtract
    • Multiply
    • Divide
    • Modulo

Incoming Nodes:

Outgoing Nodes:

Filter

Filters a range of values and outputs a subset.

Incoming Nodes:

Outgoing Nodes:

Aggregate

Aggregates a range of values into a single value:

  • Sum
  • Count
  • Average
  • Median
  • Max
  • Min
  • Mode
  • Range
  • Stddev
  • Percentile
  • Every
  • Any

Incoming Nodes:

Outgoing Nodes:

Logic

Compare

Does value comparisons:

  • Equal
  • Greater than (equal)
  • Less than (equal)
  • Not Equal

Incoming Nodes:

Outgoing Nodes:

Note: When used with one Location Node, the input value should be the location's BBL ID.

Logic

Does logical comparisons between 2 or more boolean values:

  • AND
  • OR

Incoming Nodes:

Outgoing Nodes:

Result

Result

Represents the result of a Logic Graph.

Incoming Nodes:

Outgoing Nodes: Event

Event

Event

Specifies the event to be triggered when result of expression changes from True to False or False to True.

Incoming Nodes: Result

Outgoing Nodes: NIL

Note: This event refers to an event created within the CMS. See Add Event to learn how to add an event in the CMS.