Structure Window Overview of Rules Designer Editor Environment

24-8 Oracle Fusion Middleware Developers Guide for Oracle SOA Suite 2. Expand the BPEL process by double-clicking the process item. For example, expand the BPEL process to view receiveInput and callbackClient as shown in Figure 24–5 . Figure 24–5 Adding A Business Rule to a BPEL Process

3. Select Business Rule from the SOA Components section of the Component Palette

and drag-and-drop a Business Rule into the position where the business rules are needed. For example, drag-and-drop a Business Rule between receiveInput and callbackClient, as shown in Figure 24–6 . Figure 24–6 Drag-and-drop a Business Rule into a BPEL Process 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 .