ADF Task Flow Parent action activity

Home/ADF/ADF Task Flow Parent action activity

ADF Task Flow Parent Action activity

 

The parent activity in the bounded task flow passes the navigation outside of the region to the parent view. In the following image, I have a ‘Button C’ inside a bounded task flow is a region component in B.jsf. When a user clicks the ‘Button C’, the navigation go backs to the parent page A.JSF. Notice the button is inside the region, a separate bounded task flow and not in B.jsf. To achieve this control flow from a region to a parent view, we need PARENT ACTION activity and specify the value about navigation to its property ParentOutcome

061216_2006_1 ADF Task Flow Parent action activity

 

 

In the following section, we explained ADF Task Flow parent action with an example. The following steps are described in this section

1.Create a JSF page ‘A.JSF‘ has a command button passes the navigation to B.jsf when it pressed

2. Create a Bounded Task Flow with a page fragment C.jsff has a command button passes the navigation back to A.jsf

3. The bounded task flow is present as a region in B.jsf

4. Deploy and Test

1.Create a JSF page ‘A.JSF’ has a command button passes the navigation to B.jsf when it pressed

A. Create a Fusion Web Application by Click File >> New >> Application >> ADF Fusion Application >> Input application name ‘ParentApp’>> Click Finish

061216_2006_2 ADF Task Flow Parent action activity

B). Right click on the Web Content >> Click New >> Select Page >> Input name ‘A.jsf

C). Create another jsf page by Right click on the WebContect >> Click New >> Select Page >> Input name ‘B.jsf

061216_2006_3 ADF Task Flow Parent action activity

D) Expand the WEB-INF>> Open the adfc-config.xml >> Drag and drop the A.jsf and B.jsf pages to the task flow >> Using the control flow Case, Drag a line from A to B as gotoB and Drag a line from B to A as gotoA

061216_2006_4 ADF Task Flow Parent action activity

D). Open the A.jsf >> Drag a command button from component to the A.jsf >> Right click on the button and select Go to Properties >> Input value of the button as ‘Go to B.jsf‘ >> Choose the Application Action to gotoB

061216_2006_5 ADF Task Flow Parent action activity

2. Create a Bounded Task flow with a page fragment C.jsff has a command button passes the navigation back to A.jsf

A). Right click on the WEB-INF >> click New >> Select ADF Task Flow >> Input a name ParentTaskFlow.xml >> Click Ok

B) Open the ParentTaskFlow.xml >> Drag a View from components >> Name it as C

061216_2006_6 ADF Task Flow Parent action activity

C) Drag a Parent Action from component to ParentTaskFLow.xml >> Right click on the ParentAction1 and select Go to properties >> Input the Parent Outcome to gotoA (See 1D) >> Use the Control Flow Case, Drag a line from C to ParentAction1 and name the flow as toParent

061216_2006_7 ADF Task Flow Parent action activity

D) Double click on the View C >> Click the button Ok in the Create ADF fragments >> Drag a command button from components to c.jsff >> Right click on the button click Go to Properties >> Input value as Go to A.jsf and Application Action as toParent

061216_2006_8 ADF Task Flow Parent action activity

3. The bounded task flow is present as a region in B.jsf

A).Open the B.jsf >> Drop the ParentTaskFlow.xml to the B.jsf >> Select region

061216_2006_9 ADF Task Flow Parent action activity

4. Deploy and Test

A). Right click on the A.jsf and Click Run

b) The Page will load on the browser. Click on the button Go to A.jsf. It navigates to B

061216_2006_10 ADF Task Flow Parent action activity

c). Click on the button Go to B.jsf, It moves back to A.jsf using parent action

061216_2006_11 ADF Task Flow Parent action activity

govindan ADF Task Flow Parent action activity
Connect me

Govind

Thank you for visiting my personal blog. Myself Govindan, Software Developer by profession since 2006 and hence I started this blog early in 2016 and ever since I've been writing about technologies experienced and learnings of everyday life.

The views expressed on this blog are my personal views and do not necessarily reflect the views of my employer.

Please feeling free to reach me on any comments and feedbacks you have. Would be more than glad to listen and reply 🙂
govindan ADF Task Flow Parent action activity
Connect me
By | 2016-12-28T17:31:36+00:00 June 12th, 2016|Categories: ADF|Tags: , , |0 Comments
Like us on Facebook.
Connect!