ADF Unbounded Task Flow Example 

ADF Task Flow is a modular way of managing the control flow in an application. In a normal web application, we usually use a web.xml or struts-config.xml to take care of all the navigation logic in the application. If the application grows then the navigation between the pages also grown and the flows are not reusable. ADF provides two types to control the navigation logic. First is Bounded, which is reusable task flow and other is Unbounded, that cannot be re-usable. We will walk through each task flows on an upcoming section. By now, we start with a simple example of Unbounded TF.

we will create a simple page navigation using Unbounded task flow between two pages as mentioned below.

052916_0804_ADFTaskFlow1 ADF  Unbounded task flow Example

Pre-Requisite

JDeveloper 12C

Fusion Web App Application

Steps

A) Open the adfc-config.xml >> Click on the components

Dra052916_0804_ADFTaskFlow2 ADF  Unbounded task flow Example

B) Drag and Drop a View from the component to the adfc-config.xml >> Name it ‘page1

052916_0804_ADFTaskFlow3 ADF  Unbounded task flow Example

C) Again drag and drop a View from the component to the adfc-config.xml >> Name it page2

052916_0804_ADFTaskFlow4 ADF  Unbounded task flow Example

D) Double Click on the page1 >> Name it Page1.jsf >> Click Ok

052916_0804_ADFTaskFlow5 ADF  Unbounded task flow Example

E) Double click on the page2 >> Name it Page2.jsf >> Click Ok

052916_0804_ADFTaskFlow6 ADF  Unbounded task flow Example

G) Open the Component >> Select the Control Flow Case >> Move a line from page1 to Page2 >> Edit the flow as Page2 >> Move a line from Page2 to Page1 >> Edit the line as Page1

052916_0804_ADFTaskFlow7 ADF  Unbounded task flow Example

H) Open the Page1.jsf >> Drag and Drop a command button from the Component to the jsf page >> Rename the button to ‘Go to Page2′

052916_0804_ADFTaskFlow8 ADF  Unbounded task flow Example

H) Right click on the Button ‘>> Click ‘Go to Properties‘ >> Select the action Page2

052916_0804_ADFTaskFlow9 ADF  Unbounded task flow Example

I) Open the Page2.jsf >> Drag and drop a ‘command button‘ from the component to the jsf page >> Rename the button to ‘Go to Page1

052916_0804_ADFTaskFlow10 ADF  Unbounded task flow Example

J) Right-click on the button and click Go to Properties >> Select the action page1

052916_0804_ADFTaskFlow11 ADF  Unbounded task flow Example

Deploy and Run the Code

E) Right click on the Page1.jsf and click Run. The application will get deployed to the integrated WebLogic server and run on the browser. Click the button ‘Go To Page2.’

052916_0804_ADFTaskFlow12 ADF  Unbounded task flow Example

It will load the content page2.jsf. Note the URL will not change, only the content will change. Click on the button Go to Page1; it will load the content page1.jsf

052916_0804_ADFTaskFlow13 ADF  Unbounded task flow Example

govindan ADF  Unbounded task flow Example
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  Unbounded task flow Example
Connect me
By | 2016-12-28T22:56:35+00:00 May 29th, 2016|Categories: ADF|Tags: , , |0 Comments
Like us on Facebook.
Connect!