In the Items area select Business Components from Tables. Click OK. Click OK. This displays the Create Business Components from Tables wizard. Click Next. This displays the Updatable View Objects page. In the Updatable View Objects page select Departments

10-10 Oracle Fusion Middleware Users Guide for Oracle Business Rules

d. In the Application Template field, select Fusion Web Application ADF.

4. Click Finish.

10.3.2 How to Add the Chapter10 Generic Project

You need to add a new project named Chapter10. Add a new project:

1. In the Chapter10 application, select the Application Menu.

2. In the Application Menu list, select New Project....

3. In the New Gallery, in the Items area select Generic Project.

4. Click OK.

5. On the Name your project page, in the Project Name field enter Chapter10.

6. Click Finish.

10.3.3 How to Create ADF Business Components Application for Business Rules

You need to add ADF Business Components from a database table. For this example we use the standard HR database tables. To add ADF Business Components: 1. In the Application Navigator, select the Chapter10 project. 2. Right-click and from the menu select New.... 3. In the New Gallery, in the Categories area expand Business Tier and select ADF Business Components .

4. In the Items area select Business Components from Tables.

5. Click OK.

6. In the Initialize Business Components Project dialog, enter the required connection information to add a connection.

7. Click OK. This displays the Create Business Components from Tables wizard.

8. In the Entity Objects page, select the desired objects by moving objects from the Available box to the Selected box. You may need to click Query to see the complete list. For example, select DEPARTMENTS and EMPLOYEES, as shown in Figure 10–2 . Working with Oracle Business Rules and ADF Business Components 10-11 Figure 10–2 Selecting Entity Objects for Sample Application

9. Click Next. This displays the Updatable View Objects page.

10. In the Updatable View Objects page select Departments and Employees, as shown

in Figure 10–3 . Figure 10–3 Adding Updatable View Objects for Sample Application

11. Click Next. This displays the Read-Only View Objects page.

12. Click Next. This displays the Application Module page.

10-12 Oracle Fusion Middleware Users Guide for Oracle Business Rules

13. Click Finish.

10.3.4 How to Update View Object Tuning for Business Rules Sample Application