ADF Train Task flow – example

Home/ADF/ADF Train Task flow – example

ADF Train Task flow – example

Like a normal train has series of carriages, ADF Train has series of pages where the user can access each page one by one. In this example, I have shown an example of creating an ADF Train.

Download the full project ADF Train TaskFlow

ADF Train – Example Started

1. Create ADF Fusion web application: Click File, go to ‘New’, ‘Application’, Select ‘Fusion Web Application’. Input an application name and click the button Finish

2. Create a JSF page: Right click on the ‘Web-Content’ under ‘ViewController’, Select ‘Page’, Name it as ‘index.jsf’ and click the button Finish

3. Create ADF Train task flow: Right click on the ‘Web-INF’, Select ‘New’ and select ‘ADF Task Flow’. Make sure to select the check box ‘Create train’ as shown below and
Click Ok

080116_0424_ADFTrainTas1 ADF Train Task flow – example

4. Open the ADF Train task flow we just created, drop three view component to the train as shown below. ADF creates the chain between the view automatically for you. Default, the first view is the entry point for the ADF Train

080116_0424_ADFTrainTas2 ADF Train Task flow – example

5. Double click on each view component and create a jsff page

080116_0424_ADFTrainTas3 ADF Train Task flow – example

6. Open each JSFF page (view1.jsff, view2.jsff, view3.jsff) and drop a Train component. You must drop this train component on each page else it won’t allow a provision to navigate back or further.

Additionally, add whatever component you want on the page. For this example, I have added an output text on each page

080116_0424_ADFTrainTas4 ADF Train Task flow – example


7. Now, drop the ADF train task flow into the index.jsf page as a region activity and run the application

080116_0424_ADFTrainTas5 ADF Train Task flow – example



Running ADF Train on browser

By default, the view1 loaded on the screen

080116_0424_ADFTrainTas6 ADF Train Task flow – example

By Clicking on the center button, will load the view2

080116_0424_ADFTrainTas7 ADF Train Task flow – example

By clicking on the third button will load the view2

080116_0424_ADFTrainTas8 ADF Train Task flow – example

pgn ADF Train Task flow – example


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 🙂
pgn ADF Train Task flow – example
By | 2016-08-30T21:32:17+00:00 August 1st, 2016|Categories: ADF|Tags: , , , , , |0 Comments
Like us on Facebook.