This topic explains different types of rules and how they trigger Location Awareness Services for WebSphere® Premises Server events.
Rules define conditions and policies that need to be met. For example, rules can be used to restrict access to certain zones or to limit the amount of time an item stays in a zone. Business rules are implemented based on a generic Complex Event Processing (CEP) engine which facilitates the development of additional rule types. Events (alerts) occur when rules are violated. Events are published and saved in the event database. Subscriber programs can subscribe to Location Awareness Services for WebSphere Premises Server events. Violations of rules related to items can also be displayed in the Spatial Management Client.
Location Awareness Services for WebSphere Premises Server rules typically refer to the aspects of the real world as it is modeled in Location Awareness Services for WebSphere Premises Server - items and persons equipped with tags and the topology of the location to be monitored. Some basic rule types are supported by Location Awareness Services for WebSphere Premises Server and you can use portlet-based user interfaces to create instances of these rule types. An example of a rule type is "must not enter" whereas an example of a related rule instance is "members of the Visitor class must not enter protected zones". The following rules are related to zones and can be set and maintained in Business Rules in the Location Awareness Services for WebSphere Premises Server Administrative Console:
When a tag is considered to have entered or exited a zone is also affected by the MaxUnrecognizedMovement system property. See System Properties.
This rule checks whether a visitor is accompanied in specified zones by an escort. The visitor must belong to container classes, the escort must not contain a container class, and the DynamicContainerSupportOn system property must be selected. See System Properties.
When an item is in a zone longer than specified by the rule, an alert is triggered for the tag.
When a defined threshold of items in a zone is exceeded, an alert is triggered.
The following global rule types do not have different instances, but can be customized in the System Properties portlet in the Location Awareness Services for WebSphere Premises Server Administrative Console:
When a tag is no longer detected by the event provider, an alert is triggered. See MaxUnrecognizedMovement and TagNotResponsiveAlertAction in System Properties for more information. In addition, the tag icon fades on the Spatial Management Client.
When a tag has a low or empty battery, a BatteryLowAlert or BatteryExhaustedAlert is issued. See BatterylowAlertAction in System Properties for more information. In addition, the Spatial Management Client displays a small battery icon.
When a tag is detected that is not related to a defined item, an UnknownTagAlert is generated. See UnknownTagalertAction in System Properties for more information. In addition, the Spatial Management Client displays an unknown tag icon.
If a tag that belongs to a class that is defined as stationary moves, an alert is generated. The movement must exceed the value specified in the MaxUnrecognizedMovement system property.
To avoid a flooding condition of stationary alerts, if the tag moves twice the amount of units defined in MaxToleratedMovement, then a stationary alert will be generated once every 5 minutes.