ADF for beginners

Monday, 1 September 2014

Parent action activity in a task flow - Oracle ADF

The parent action activity allows an ADF bounded task flow to generate outcomes that are passed to its parent. The outcomes are used to navigate the ADF task flow containing the enclosing view'rather than navigating the ADF task flow of the ADF region.
  • Parent outcome: Specifies a value passed to the parent viewport to navigate t he enclosing view's task flow rather than navigating the region's task flow where the parent action activity is defined.

    In this post am going to show how the parent activity used to navigate from the enclosed parent view to different regions.

    STEP 1:
    I have created a task-flow-defintion-parent.xml a bounded task flow. I have dragged and dropped a view activity as parent.jsff, From parent.jsff it navigates to the taskFlowCallLocations.xml a bounded task flow and locaReadOnly.jsff. 








    STEP 2:
    Now am creating task-flow-defintion-child.xml a bounded task flow which has countries.jsff with 2 parent action activity as parentaction and parentaction1. Countries has the outcome callParent and callp

     
    STEP 3:
    Now drag and drop countries table to the countries.jsff with 2 command buttons Location ReadOnly and Location.

     
    In the parent action property set the outcome as child

     

    In the parent action1 propert set the parent outcome as child1.








     

    STEP 4:

    Now drag and drop the task-flow-defintion-child.xml to parent.jsff.

    <af:panelBox text="ParentJSFF" id="pb1">
        <f:facet name="toolbar"/>
        <af:region value="#{bindings.taskflowdefinitionchild1.regionModel}"
                   id="r1"/>
      </af:panelBox>

    STEP 5:

    Create a taskFlowCalllocations.xml with Locations.jsff and taskFlowReturn.

     
    In the locations.jsff drag and drop as locations vo as af:table with countrie as af:button so that it navigates to parent.jsff 

     
     STEP 6:

    In the LocaReadOnly.jsff which is in task-flow-definition-parent.xml bounded taskflow drag and drop Locations VO from data control as af:readonly table.

    Back af:button will be  back to parent.jsff view activity.

    STEP 7:
    Now drag and drop the task-flow-defintion-parent.jsff to the Main.jspx and run the jspx page

    Initial Page View

    Now click the location ReadOnly it will navigates to LocaReadOnly.jsff

    Click the back button to navigate the mail page now press location button it navigates to the Location.jsff page.

    Hope this post might be usefull
    Kindly revert me back if have any questions.