USING A TASK FLOW FROM A LIBRARY
USING A TASK FLOW FROM A LIBRARY
With the deptflow task flow library now in place, the last step is to integrate it into the “main menu” page. Start by switching the current workspace back to MainApp, using the list at the top of the Application Navigator. Double-click the Web Content folder’s adfc-config node in the Application Navigator to open it in the editor. Expand the DeptFlow.jar node inside the Libraries file system connection node in the Resource Palette and the ADF Task Flows folder it contains. Drag the deptflow task flow from the Resource Palette, and drop it onto the task flow diagram. Confirm the addition of the Oracle ADF library by clicking Add Library in the alert that appears. Choose View ->
Component Palette, and select the Control
Flow Case tool in the palette. Click the task flow diagram’s Home activity, and then click the deptflow task flow call activity to connect the two activities with a control flow case. Enter the name ManageDepartments on the line. Double-click the Home activity to open the page in the visual editor. Select the Manage Departments commandLink component on the page, and in the Property Inspector, set its Action property value to ManageDepartments to correspond to the new control flow case you created.
When you use the Resource Palette to add a component from an Oracle ADF library, Oracle JDeveloper automatically adjusts your current project’s library list to include the library JAR file and any JAR files that library depends on. To confirm this, double-click the ViewController project and select the Libraries and Classpath page of the Project Properties dialog box. Scroll to the bottom of the Classpath Entries list, When you use the Resource Palette to add a component from an Oracle ADF library, Oracle JDeveloper automatically adjusts your current project’s library list to include the library JAR file and any JAR files that library depends on. To confirm this, double-click the ViewController project and select the Libraries and Classpath page of the Project Properties dialog box. Scroll to the bottom of the Classpath Entries list,
the core Entities.jar file that contains the
Steve Muench is
added to the list. The Oracle ADF library
a consulting product contains the path(s) to the Oracle ADF
common entity objects used by all task flows.
manager for Oracle library JAR file(s) on which the project is
Click Cancel and Cancel again to dismiss the
JDeveloper. He has directly dependent. The Oracle ADF Library
dialog boxes.
developed, supported, and Dependencies library contains the path(s)
Right-click the ViewController project, and
evangelized Oracle tools to the library JAR files that are required by
choose Run. When the application launches
and XML technologies since 1990 and blogs at the direct dependencies. If you select the
in your browser, you can see that it now
enables users to manage both department
bit.ly/ddyMc7.
ADF Library entry in the list and click Edit,
and employee data.
you will be able to see that this project
In this column, we explored using Oracle