Time for action – passing parameters to a task flow

Let us see how to pass a parameter to createDepartmentFlow from the createEmployeeFlow bounded task flow:

  1. Go inside createDepartmentFlow in the ViewController project of EmpDirectoryApplication.
  2. Click on the Overview tab and select the Parameters section from the left-hand side.
  3. Click on the + icon to add a parameter in the Input Parameter Definitions section.
  4. Provide the Name as deptIdParam and tab out of the Name column. The Value section will be auto populated with #{pageFlowScope. deptIdParam}.
  5. Provide java.lang.String in the Class column to define that the parameter that we are passing will be of a String type.
  6. Select the Required option to make the parameter as the required value for the task ...

Get Oracle ADF 11gR2 Development Beginner's Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.