Simplifying phrases with implicit variables

You can write simplified phrases that refer implicitly to an event or entity type.

In the rules, you can use variables that refer implicitly to an event or entity type. The implicit variable for an event type is introduced by the when construct. The phrases that refer implicitly to this event type are available in the where clauses of the rule. For example, if an airport closed event has an airport attribute, you can refer to this airport attribute as the airport instead of the airport of this airport closed event.

In the condition part of the rule, the simplified phrase can also refer to the implicit variable of an event or entity type when this variable precedes the where clause.

In the following example, the bag lost event is the implicit variable of the time.

Example of rule with an implicit variable "the time"

In the following example, the arrival airport refers to the flight entity type. In the action part of the rule, the airport refers to the airport closed event.

Example of rule with two implicit variables: "the arrival airport" and "the airport"
Note: You can also use simplified phrases and implicit variables in aggregate definitions (.agg) and in agent descriptors (.adsc).

These simplified phrases make the rule shorter and easier to read. However, if you want to avoid ambiguities, you can still use the complete form. For example, you can write the arrival airport of 'the flight' instead of the arrival airport.