Business Rules 10.11 | webMethods Business Rules Web Help | Working with Business Rules in My webMethods | Working with Event Rules
 
Working with Event Rules
 
Modifying an Event 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).
Event Rule in the Decision Entity Editor
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 which are explained 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 Value
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 (marked by a dotted line).
Action Result Value
The action result value expresses the action status. There are two types:
*Action enabled icon (action is enabled).
*Action disabled icon (action is disabled).
The following table shows a rule that can be modeled in an event rule using an action result:
Rule
WHENEVER a permitted payment method changes for a customer, THEN this customer is notified of this by email.
Event Rule Example