Triggers

<< Click to Display Table of Contents >>

 

Triggers

Triggers allow users to define a condition to send an e-mail or execute a script on the server. The programming language used on scripts is JavaScript. Triggers can be used, for example, as alarms or for scheduling the creation of Forms. The available options on the Triggers Triggers tab are described on the next table.

Available options on the Triggers tab

Option

Description

Add Add

Adds a new Trigger. The available options are Email: Sends an e-mail whenever a Trigger is triggered or Script: Executes a script whenever a Trigger is triggered

Remove Remove

Removes the selected Trigger

 

When clicking Add Add, the window on the next figure is displayed.

Window to add Triggers

Window to add Triggers

When clicking Email Email, the window on the next figure is displayed.

Window to configure an Email Trigger

Window to configure an Email Trigger

The available options on this window are described on the next table.

Available options on the configuration window of an Email Trigger

Option

Description

Name

Trigger's name

Condition

Expression to access a Tag's value. Click Tag to select a Tag.
This script runs on the server. The functions IsQualityGood, ValueOf, and QualityOf can be used in the condition expression.

Send email to

Users or groups to which this e-mail is sent. For multiple e-mail addresses, type them separated by semicolons. To send an e-mail, users must configure an SMTP server. For more information, please check topic SMTP Server

Subject

Text of e-mail's subject

Message

Text of e-mail's message

Disable

Indicates whether this Trigger is disabled, that is, not triggered

 

In the Condition field, users can type an expression to access a Tag's value by using the ValueOf function, as in the next example.

ValueOf("demo:TagInternal1") == 5
ValueOf("demo:TagInternal2") != 3
ValueOf("demo:TagInternal3") >= 50

 

NOTE

The possible logical operators are the same ones used in JavaScript. For more information, please check article Developing expressions in Elipse Mobile on Elipse Knowledgebase.

 

When clicking Script Script, the window on the next figure is displayed.

Window to configure a Script Trigger

Window to configure a Script Trigger

The available options on this window are described on the next table.

Available options on the configuration window of a Script Trigger

Option

Description

Name

Trigger's name

Condition

Expression to access a Tag's value. Click Tag to select a Tag

Script

The script to execute when this Trigger is triggered. For more information about scripts, please check topic Scripts Reference

Disable

Indicates whether this Trigger is disabled, that is, not triggered

Was this page useful?