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.
Fusion Web App Application
A) Open the adfc-config.xml >> Click on the components
B) Drag and Drop a View from the component to the adfc-config.xml >> Name it ‘page1‘
C) Again drag and drop a View from the component to the adfc-config.xml >> Name it page2
D) Double Click on the page1 >> Name it Page1.jsf >> Click Ok
E) Double click on the page2 >> Name it Page2.jsf >> Click Ok
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
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′
H) Right click on the Button ‘>> Click ‘Go to Properties‘ >> Select the action Page2
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‘
J) Right-click on the button and click Go to Properties >> Select the action page1
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.’
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
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 🙂
Latest posts by Govind
- P6 Progress Reporter completely integrated into P6 Team Member - August 15, 2017
- Primavera P6 Professional for EPPM Popup 16.2 : The appropriate industry for your organization has not yet been select in admin preferences - August 15, 2017
- Primavera P6 Background Job Error:Creating job Symon Failed to add Database Job, Check the settings table for valid interval values for dbms_scheduler - August 14, 2017