evalinkdocs

Where you can use expressions

Alarm expressions work in most fields that take an alarm code. In some fields they recognise incoming alarms, in others they describe an alarm that evalink talos creates.

Fields that recognise alarms

Field Where
Expression condition (under More) A workflow's start conditions. See Set the start conditions.
Expression condition (under More) of a case The Check Alarm Attributes step. See Check Alarm Attributes.
Filter The Retrieve Alarms step. See Retrieve Alarms.
Ignored Alarms, Rejected Alarms A site's Settings, and the company's Edit special alarms dialog. See Special alarms.
Expected Alarm An alarm supervision. See Alarm supervision.
Criteria A criteria mapping. See Zones, partitions and criteria mappings.

These fields take several expressions, separated by commas.

Fields that create alarms

Here the expression describes the new alarm. Enter one expression only.

Field Where
Alarm Expression The Trigger Alarm step. See Trigger Alarm.
Active Violation Alarm, Passive Violation Alarm, Restore Alarm A status rule. See Statuses and status rules.
Alarm Code (Active), Alarm Code (Inactive) A site schedule. See Raise an alarm when a schedule switches.
Timeout Alarm An alarm supervision
Event Code A criteria mapping, with limits. See Event Code of a criteria mapping.
+BA { zone = 3, partition = 1, message = Door forced }

Some fields add their own values:

  • A schedule alarm without a zone gets the schedule's name as its zone, and the header x-source = schedule. Schedule alarms are available on site schedules only.
  • A Timeout Alarm is always created as an alarm, not a restore, even with a - in front.

Fields that take a plain code only

  • The Alarm Code of the Trigger Alarm dialog on the Alarms page. Zone, partition and the rest have fields of their own next to it.
  • The Alarm code is condition of a workflow's start conditions. It takes wildcards, but no conditions in braces.

Exceptions for one site

In a site's Ignored Alarms and Rejected Alarms, a leading ! makes an exception from the company-wide lists and from the ignore and reject options of the alarm definitions.

!400
!400 { zone = 5 }

The first line lets every 400 through on this site. The second lets through only 400 from zone 5; other 400 alarms stay ignored.

evalink talos reads the list from left to right, and the first expression that fits decides. Put exceptions before broader expressions.

Event Code of a criteria mapping

The Event Code of a criteria mapping can name the alarm code and its restore code, separated by a slash. The first is used for alarms, the second for restores:

FA/FR

Conditions in braces may set zone, zoneName, partition, partitionName, message, payload and headers. Every slash splits the field, so a value can't contain one: no web addresses here.

Templates in the Trigger Alarm step

The Alarm Expression of a Trigger Alarm step is a text template: placeholders in double braces are filled in first, then the result is read as an expression.

+BA { zone = {{ alarm.alarmZone }}, message = Follow-up of {{ alarmCode }} }

The editor checks the text as you typed it, so it may show the expression as invalid even though it works. The expression fails only if a filled-in value contains a character that breaks it, such as a comma or a brace. To be sure, run the step once on a test alarm and look at the alarm it creates. See Placeholders in an alarm expression.