284 total views, 1 views today

What is ADF Bounded Taskflow – Example

Bounded Taskflow is a kind of Task flow in ADF, has a single entry point and zero or more exit points. It contains navigation login, activities and managed beans. Unlike unbounded task flow, it allows reuse, parameters, transaction management, and reentry. By default, JDeveloper created the following file format for bounded task flow, where ‘N‘ is the incremental number each time that you create a bounded task flow.

task-flow-definitionN.xml

This section, we are going to create two bounded task flow and reuse it in a JSF page. The following things are covered in this section

1. Create an ADF application

2. Create a Bounded TaskFlow

3. Create another Bounded Taskflow

4. Assign the two Bounded Taskflows to a JSF page

5. Run and test the application

Pre-Requisite:

JDeveloper12C

1. Create an ADF application

Create ADF application: Click File >>New >> Gallery >> Select ADF Fusion Web Application >> Click Ok >> Click Next multiple times >> Click Finish

052916_2219_ADFBoundedT1 what is ADF Bounded TaskFlow – Example

2. Create a Bounded TaskFlow

A). Expand the ViewController >> Right click on the WEB-INF >> Click New >> Select ADF Task Flow

052916_2219_ADFBoundedT2 what is ADF Bounded TaskFlow – Example

B. Enable the Bounded Task Flow >> Click Ok

052916_2219_ADFBoundedT3 what is ADF Bounded TaskFlow – Example

C. Open the task flow just we created >> Open component >> Drag and Drop view from component to the task flow >> Rename the view to Home

Note: Here we could add multiple views, navigation and many others but for this example, it is beyond the point we are discussing so we strict with creating one JSF page fragment

052916_2219_ADFBoundedT4 what is ADF Bounded TaskFlow – Example

D). Double click on the Home >> The JSFF page fragment wizard will open >> Click Ok

052916_2219_ADFBoundedT5 what is ADF Bounded TaskFlow – Example

E) The home.jsff file opens on the screen, Drag and drop an OutputText from component to the Home.jsff page >> Rename the value of the OutputText to ” Home.jsff inside bounded taskflow

052916_2219_ADFBoundedT6 what is ADF Bounded TaskFlow – Example

3. Create another Bounded Taskflow

A) Right click on the Web-Inf >> Select the ADF Tsk Flow

052916_2219_ADFBoundedT7 what is ADF Bounded TaskFlow – Example

B) Make sure the Bounded is enabled >> Click Ok

052916_2219_ADFBoundedT8 what is ADF Bounded TaskFlow – Example

C) Open the Taskflow we created recently >> Drag and Drop View from component to the task-flow-definition1.xml >> Rename the view to Dashboard

052916_2219_ADFBoundedT9 what is ADF Bounded TaskFlow – Example

E) Double click on the Dashboard >> The JSFF fragment will open >> Click Ok

052916_2219_ADFBoundedT10 what is ADF Bounded TaskFlow – Example

F) The Dashboard.jsff opens on the screen >> Click on the source tab >> Drag and drop outputText to the JSFF page >> Change the value of the output text to ‘Dashboard.jsff from Taskflow2′

052916_2219_ADFBoundedT11 what is ADF Bounded TaskFlow – Example

4. Assign the two Bounded Taskflows to a JSF page

A) Right click on the WebContent >> Click New >> Select Page

052916_2219_ADFBoundedT12 what is ADF Bounded TaskFlow – Example

B) Name it index.jsf >> Click Ok

052916_2219_ADFBoundedT13 what is ADF Bounded TaskFlow – Example

C) Open the index.jsf >> click on the source tab >> Drag theirst taskflow, i.e, task-flow-definition.xml to the index.jsf file inside the form tag >> Select Region

052916_2219_ADFBoundedT14 what is ADF Bounded TaskFlow – Example

F) Drag the second task flow ‘task-flow-definition1.xml’ below the region element inside the form >> Select Region

052916_2219_ADFBoundedT15 what is ADF Bounded TaskFlow – Example

E) The final index.jsf will look like below. It has two bounded task flow assigned to the region element

052916_2219_ADFBoundedT16 what is ADF Bounded TaskFlow – Example

 

ADF Bounded Taskflow is completed now. 

5. Run and test the application

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

052916_2219_ADFBoundedT17 what is ADF Bounded TaskFlow – Example

B) The application gets deployed and page index.jsf will open on the browser. You might notice the first line come from task-flow-definition.xml and the second line comes from taskflow-definition1.xml

052916_2219_ADFBoundedT18 what is ADF Bounded TaskFlow – Example

govindan what is ADF Bounded TaskFlow – 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 what is ADF Bounded TaskFlow – Example
Connect me
By | 2017-06-10T23:22:32+00:00 May 29th, 2016|Categories: ADF|Tags: , , , |0 Comments
Like us on Facebook.
Connect!