Oracle® SOA Suite Developer's Guide 10g (10.1.3.1.0) Part Number B28764-01 |
|
|
View PDF |
Rule Author lets you use variables in the data model. When you use a variable, this allows you to use figurative constants in rules. For example, the data model for the SOA Order Booking application includes a variable named AUTOMATED_ORDER_LIMIT
that specifies the business policies for the order price limit that can be approved without a manual credit approval. The SOA Order Booking application rules use a variable to define a figurative constant that defines the policies for an order value, where a value above the specified limit requires manual credit approval.
Use the Rule Author Definitions tab to add a variable to the data model. For example, in the SOA Order Booking application, we use Rule Author to add the AUTOMATED_ORDER_LIMIT
variable to the data model.
To add a variable to the data model:
Click the Definitions tab (using the OrderBookingRules
dictionary).
In the navigation tree, click the Variable node. This shows the Variable Summary page.
If you have not previously defined the AUTOMATED_ORDER_LIMIT
variable, then click Create. This shows the Variable page.
On the Variable page, in the Name field, enter AUTOMATED_ORDER_LIMIT
.
In the Alias field, enter AUTOMATED_ORDER_LIMIT
.
Select the Final check box (by default this check box is selected).
In the Type box, select float
In the Expression box, enter 1000.00
.
To use the define expression Wizard to assist you when you create an expression, click the edit icon.
Click OK (see Figure 8-10).
Note: When Rule Author creates a variable, it adds a "DM. " to the name you enter in the Name field (DM stands for Data Model). |
Figure 8-10 Rule Author Variable Definition Page