Dell Vizioncore Bedienungsanleitung Seite 273

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 531
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 272
Working with vFoglight Rules and Registry 273
Working with Rules
In the Condition tab, use the Condition area to write the conditional expression.
using the following syntax:
some_value.equals(@event.get("[report/]property");
Where
report indicates that you want to use the ReportGeneratedEvent in the
conditional expression.
property is the name of the event property that you want to use in the
comparison. For a complete list of event properties and the information they
contain, see “AlarmSystemEvent” on page 267 or “ReportGeneratedEvent” on
page 269.
some_value contains the value that is to be compared with the specified
property value.
Caution The data type of the value you specify here must match the data type of the
property with which you compare this value.
For example, to write a condition that triggers an event-driven rule to fire when
vFoglight generates a report whose name is
System Resources, write the
following expression:
@event.get("report/name") == "System Resources";
Report attachments are not stored in ReportGeneratedEvent object properties. To
retrieve a report attachment in a rule condition, use the following syntax:
byte[] a_pdf_object =
server.get("ReportingService").getReportData(@event.get
("report/reportId"));
Where a_pdf_object is the name of the report file that you want to retrieve.
Important To separate multiple lines in conditional expressions, use a semicolon followed
by a carriage return. In conditional expressions consisting of a single line, using a
semicolon to end the line is optional. For example:
Multi-line expressions
Example A
Correct
Seitenansicht 272
1 2 ... 268 269 270 271 272 273 274 275 276 277 278 ... 530 531

Kommentare zu diesen Handbüchern

Keine Kommentare