Package wt.rule

Uses the RuleService (and server-side-only RuleServiceSvr to manage the definition and application of Rules.

See:
          Description

Class Summary
RuleType

Supported API: true

Extendable: false
 

Package wt.rule Description

Uses the RuleService (and server-side-only RuleServiceSvr to manage the definition and application of Rules.

The RuleService provides a way to specify information that the system can use in order to perform actions on an object in the system. These specifications are called Rules.

The rule service supports two basic APIs:

Rule selection involves finding a rule that is applicable to a particular object. Rule application involves performing the actions that are required by the rule's specification.

The specification of a rule consists of an XML document. This XML document is parsed and "executed" when a rule is applied.

A rule has a RuleType. This rule type specifies the type of specification that is provided by the rule. For example, INIT rules allow for the specification of default values that can be used by the system to initialize an object before it is persisted.

A rule can be enabled or disabled. In general, the rule selection process considers only enabled rules.

The rule service uses a delegation pattern in order to enable customizations that add new rule selection logic or new rule application logic to support new rule types.