Samples > Rule-Based Programming > How to Process Timestamped Events with Rules

This sample shows how to use specific rule constructions to process objects as events.

Key Features

Key features include:

Importing this Sample

To import the eventmatching sample:

  1. Click File > Import.
  2. In the Import Wizard, select ILOG Rule Studio Samples and Tutorials and click Next.
  3. Select the samples > engine > eventmatching sample.
  4. Click Finish.
  5. If one or more files already exist in your workspace, a warning message is displayed indicating that the corresponding file(s) were not re-imported. Close the message window.

The imported sample project files are displayed in the Rule Explorer.

Running this Sample

Make sure you are in the Rule perspective before running this sample.

To run the eventmatching-application project:

  1. Click Run > Open Run Dialog.
  2. Select the Java Application with Rules > eventmatching-application launch configuration.
  3. Click Run.

Output is displayed in the Console view.

Highlights

In this sample, an event processor that encapsulates a rule engine monitors a flow of alarms to filter out the insignificant ones and correlate the remaining ones into higher-level pieces of information. This sample gives a starting point for alarm filtering and correlation applications.

This sample is implemented in three different projects.

Related Concepts

BOM and XOM
Business Object Model (BOM)
Execution Object Model (XOM)

Related Reference

event (in rule conditions)
after

Related Samples and Tutorials

Import Samples and Tutorials Wizard