Time for action – adding a task flow as a region
Now we will see how to add a task flow to the page fragment file:
Double–click on the
employee.jspx
file from the Structure window. This will open up the file for you.Now select
createEmployeeFlow.xml
from the application navigator.Drag the file and place it inside the content facet, as marked in the following image:
A small pop up will be shown to select a Region or a Dynamic Region. A Dynamic Region will dynamically determine which task flow will be displayed at runtime based on a value set in the managed bean. Select the Region option from the pop up.
A pop up will be displayed for you to provide a value for the parameter. Provide a value for the parameter. You can enter the value
'10'
.
What just happened?
We have added a task flow to the page. You can now see that the page definition file will have a task flow binding added to it, as shown in the previous screenshot. The task flow will have the parameter deptId
and the value as 10
. The department...