Code Effects Rule Types

Code Effects supports two complementary types of rules:

Both rule types are authored in the same Rule Editor UI and stored in the same Rule XML format. The selected Rule Type determines which menus are enabled during authoring and which engine behaviors are active at runtime.

When to Use Which Type

Use evaluation rules when you need a decision that can be expressed as a predicate (eligibility, segmentation, routing, pricing tiers). These rules also support Data Filtering (rule-to-query conversion) so you can apply the same rule to collections with the Evaluator.Filter() method.

Use execution rules when, in addition to a decision, you need to perform side effects such as sending notifications, generating files, invoking HTTP calls, or updating state via actions.

Authoring Differences

Capability Evaluation Type Execution Type
Returns boolean True True
Actions and filed setters False True
In‑rule methods in conditions True True
Filter mode (Data Filtering) True False
Loop evaluation mode False True
Ruleset evaluation mode False True
Reusable rules True False
Rule templates True True
Multilingual support and Help XML True True

p101

l097 --

l102

p101

×