Using a task flow initializer to initialize a task flow
In the Using an application module function to initialize a page recipe in this chapter, we demonstrated how to use a method residing in the application module to perform page initialization, by bounding the method as a method call activity in the task flow. This recipe shows a different way to accomplish the same task by using a task flow initializer method instead. Unlike the method call activity, which once bound to the task flow may be called multiple times in the task flow, the initializer method is called only once during the task flow initialization.
Getting ready
You will need a skeleton Fusion Web Application (ADF) workspace created before you proceed with this recipe. For this, we have used the MainApplication
workspace that was developed in the Breaking up the application in multiple workspaces recipe in Chapter 1,Pre-requisites to Success: ADF Project Setup and Foundations.
The recipe also uses the HRComponents
workspace,...