Using method call activity to initialize a page
A method call activity can be used for invoking business logic while transitioning to a new view. For instance, consider a simple control flow case defined between department and employee pages in a web application. When the user navigates to employee pages by selecting a specific department row from the department page, the application should fire a query to find employees for the selected department and the result should be displayed in the employee page. The Oracle ADF framework has declarative support for invoking methods while transitioning between views.
The following control flow case diagram illustrates the usage of method activity for querying the employee data source for the selected department, while transitioning from department to employee view:
Building a task flow with method call activity
In this section we will see how to build a control flow shown in the previous screenshot:
Drag-and-drop the view activity for displaying department...