Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 17 Rule Templates : Adding a Rule Template

Adding a Rule Template
See Rule Template and Rule Template View Overview for an introduction to this feature, and Rule Template Editor Reference for a reference to the editor.
You can associate domain models with bindings to restrict the values WebStudio users can enter. Add the domain models first.
Some familiarity with rules is assumed. See Chapter 16, Rules and Rule Functions for details.
To Add a Rule Template
1.
Right-click the folder where you want to store the rule template, and select New > Other > TIBCO BusinessEvents > Rule Template. You see the New Rule Template Wizard.
2.
In the Rule Template Name field, type a name for the rule template. In the Description field, type a description.
3.
Click Finish. You see the Rule Template editor.
Configuration
4.
Declarations and Variables
5.
In the Declarations and Variables section (equivalent to the declare statements in the source editor), do the following:
a.
Click Add. You see the Select Rule Declaration Arguments dialog box.
b.
c.
d.
Click OK.
e.
f.
Add more types as desired.
Bindings
6.
Click the Bindings tab. In the Bindings section, click Add, select a data type, and click OK. A new entry appears in the Bindings list. Complete the entry as desired. You can do any of the following:
Add more bindings as desired.
Pre-conditions and Action Context
7.
a.
Adding pre-conditions is similar to adding conditions for a rule, except that you can add non-conditional statements in a pre-condition. See Pre-conditions Section.
b.
Adding Action Context statements is similar to adding actions for a rule, except that only those action context statements used in business rules are actually executed.
8.

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved