Business Rules 10.11 | webMethods Business Rules Web Help | webMethods Rules Development Help | Working with Event Rules
 
Working with Event Rules
 
About Event Rule Processing Modes
Accessing the Event Rule Wizard
Creating an Event Rule
Modifying an Event
Modifying an Event Rule Result
An event rule is a decision entity that specifies the results triggered by an event. Events are triggered by other event rules and decision tables during rule execution.
Important:
To work properly, event rules must be part of a rule set.
Event Rule Structure
An event rule consists of an event (blue color) and one or more results (green color).
Simple Event Rule Structure
Event
The event consists of an event source that is specified by a parameter element and the type changed. This type triggers one or more results whenever the event source changes. The change must be triggered by other event rules or decision tables. Changed type event rules have the following syntax:
WHENEVER an Event Source CHANGED THEN Result.
Results
There are two types of results as shown in the following table:
Result
Description
Assignment Result
An assignment result is specified by a parameter element. This result type is applied, whenever you want to assign a value to a result.
Action Result
An action result is specified by an action. This result type is applied, whenever you want to execute an action from an event rule.
Assignment Result Values
An assignment result value can consist of:
*An operator and a literal value.
*An operator and a parameter element (marked by a dotted line).
*An operator and an action that delivers an output value (marked by a dotted line and () behind the action name).
*An operator and a constant (marked by a dotted line).
*An operator and an expression.
Action Result Values
The action result value expresses the action status. There are two types:
*Action enabled icon (action is enabled).
*Action disabled icon (action is disabled).
Example
The following rule can be modeled in an event rule:
Rule
WHENEVER a permitted payment method changes for a customer, THEN this customer is notified of this by email.
Event Rule Example