How to Create Business Rules Components

Getting Started with Oracle Business Rules 24-9 4. Oracle JDeveloper displays the business rule in the diagram. Double-click the business rule component to display the Rule dialog box. The Rule dialog box provides tabs, such as General, Dictionary, Correlation Sets, and so on, where you can select an existing Oracle Business Rules dictionary or enter the name of a new dictionary to create. Under the General tab, in the Name field enter a name for the business rule. For example, enter GetCreditRating, as shown in Figure 24–7 . If you previously created a dictionary, under the Dictionary tab, in the Dictionary field, select an existing dictionary. Figure 24–7 Business Rule Added to Auto Loan BPEL Process

5. In the Business Rule area for the Business Rule Dictionary, click the Create

Dictionary icon to display the Create Business Rules dialog.

6. In the Create Business Rules dialog you do the following:

■ Specify a name for the Oracle Business Rules dictionary and a package name. ■ Specify the input and output data elements for the business rule. For example, for a sample Decision component named GetCreditRating, the input is a rating request document. The output is generated when you run the business rules, and for this example is a rating document. For example, in BPEL you can create two new variables, RatingRequest and Rating that carry the input and output data for the GetCreditRating rules. Enter a name for the Oracle Business Rules dictionary. For example, enter GetCreditRating, as shown in Figure 24–8 . 24-10 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite Figure 24–8 Adding GetCreditRating Business Rule Dictionary Add inputs for business rule: 1. In the Create Business Rules dialog, from the menu next to the Add icon select Add Input Variable... to create the input variable. This displays the Add Input Variable dialog box.

2. In the Add Input Variable dialog box, expand the Process folder and select the

Variables folder immediately inside the Process. 3. Right-click the Variables folder, and from the list select Create Variable... as shown in Figure 24–9 .