The Declarations and Variables section (declare in the source view) is similar to the Declaration section of a rule. However, in rule templates you can declare primitive types (as you can in rule functions). You can also define initial expressions for primitive types, for example,
int j = 50;
The Pre-conditions section (when in the source view) is similar to the Conditions section of a rule. However, WebStudio users can add additional conditions when defining individual business rules. The Pre-conditions section specifies conditions that must be met in
all instances of a rule template before the rule’s actions execute.
The Action Context section (actionContext in the source view) has a similar purpose to the Actions section of a rule. The Action Context section, however, defines
all possible actions that can be taken by a business rule (after all conditions are met). Only the action context statements that the WebStudio user selects and defines as commands in the business rules are actually taken (depending on rule evaluation at runtime).
At runtime, the UNIT_PRICE is checked against the specific dollar amount defined in the business rule.
When executed, the engine calls the matchFound rule function and passes the value of
dollarAmount as defined in the business rule.
In the Views section of the Bindings tab, you select a view that you have already defined. The selected view is used in WebStudio to present the rule template to the users and enable them to define the business rules (that is, executable rules).