SlideShare a Scribd company logo
1 of 32
Download to read offline
ADF Task Flows
For Beginners
By Zeeshan Baig, Oracle ACE
www.baigzeeshan.com
A little about me.....
I am currently working as Senior Developer at NMH
in Chicago.

● 10+ years of experience in Oracle Development
  tools (Database, Forms, APEX, ADF, Fusion)
● Oracle ACE, OCP DBA certified in 8, 8i and 10g
● Technical blog on ADF and other fusion
  technologies at www.baigzeeshan.com
● YouTube channel http://youtube.com/baigsorcl
Disclaimer: The views expressed are my own and does not affiliates with my employer
Agenda
●     What are Task Flows?
●     Types of Task Flows?
●     Other concepts used in Task flows
●     Understand different components to build
      task flows
●     Introduction of Task flows templates
●     Some tips on building reusable task flows
●     Demo
●     Questions
Thanks Google, Flickr.com and Oracle documentation for images used in this presentation. These images are
unmodified and used for educational purpose only.
What are task flows
their types
and other concepts?
What are Task Flows?
In simple words
● Visual representation of app process flow
● Each TF contains portion of app navigation
● They are similar to traditional flow charts
● Primary purpose is reuse
Types of Task flows
  Un Bounded       Bounded
    Entry Points   Entry Points




    Exit Points     Exit Points
Types of Task Flows
    Key Differences

Un-bounded (UTF)                Bounded (BTF)

●   Public pages / No boundry   ●   Well defined boundry
●   No reuse                    ●   Reusable
●   No input parameters         ●   Can take input parameters
●   No return values            ●   Can return values
●   No transaction Control      ●   Allows transaction control
●   No security                 ●   Security control
●   e.g. Pages - Home, Help,    ●   e.g. Register, Checkout,
    Search, Navigations             other application processes
Bounded Task flows
● A typical application contains one
  unbounded task flow and many bounded
  task flows
● Build bounded task flows in its own
  application / workspace

BTFs can
● Create with Pages or Page fragments
● Create as Train flows
● Call in a Dialog
Bounded Task flows
Train Flows
Video tutorial at
http://www.baigzeeshan.com/2010/10/creating-train-flows-in-oracle-adf.
html
Page vs Page Fragment
Page Fragment
● Renders as content in another JSF page
● Must not contains the af:document, af:form, f:view,
  head, body and html because JSF page already has it
● has .jsff extension


Page
● can contains many fragments
● extension .jsf or .jspx
Task flow Regions
Regions are created when you drag and drop a bounded
task flow on a page

     Static Regions                Dynamic Regions
  ● Fixed visiblity           ● Visible based on custom logic
  ● Creates Task flow         ● Creates Multi-taskflow
     binding on page              binding

  ● Tutorial http://www.      ● Tutorial
     baigzeeshan.             http://www.baigzeeshan.
     com/2010/04/creating-    com/2010/06/working-with-dynamic-regions-
     pages-with-regions-in-   in-oracle.html
     oracle.html
Task Flow Managed Bean
Scopes
1. Application.....      Remains till application stops
2. Session..........     Persists till user session
3. PageFlow......        Also known as Task flow scope
4. View...............   Lifespan till current page
5. Request.........      Lives for duration of request
6. BackingBean.          only
7. Flash Scope..         UI Component based
                         Remains Till Next encountered
                         view (new in JSF 2.0)
Task flow Managed Bean
Scopes
OK I got it... now what
components i need to build
them?
Task Flow Components
Task flow Components
View Activity ● Displays a JSF Page or Fragment
              ● Extension .jsf, .jspx and .jsff
                   (fragments)
               ●   Bookmarkable only in unbounded
                   Task flows
               ●   Can have one or more task flow
                   regions
               ●   Good practice to have page
                   definition file attached
Task flow Components
 Method Call   ● Allows to call application logic in
                 task flow
  Activity
               ● Drag and drop methods from
                 Data Control
               ● OR DnD from component palette
                 then configure parameters to call
                 managed bean methods
               ● Common usages are initialization,
                 Clean-up, expcetion handler
               ● Can have return values in case of
                 method returns some result
               ● if method is of 'void' type then
                 outcome would be simple string
Task flow Components
Router Activity
                  ● Route to any activity based on EL
                      expression
                  ●   Have default condition
                  ●   No Limits on conditions
                  ●   No limits on destinations
                  ●   Good practice is to start your task
                      flows with Router for any future
                      customizations.
Task flow Components
Task flow call
   activity      ● Calls another task flow from
                   unbounded and bounded task
                   flow
                 ● Can take input parameters
                 ● Can return output parameters
                 ● Drag and Drop task flow from
                   Application navigator to task flow
                 ● Drag and Drop task flow to the
                   page as link or button
Task flow Components
 Task Flow
  Return     ● Used to ends or send controls
                 back to caller in Bounded Task
                 flows
             ●   Does either Commit or Rollback (If
                 Task flow is transactional)
             ●   Set outcome to required control
                 flow navigation-case.
             ●   BTF can have many TF return
                 activities
Task flow Components
 URL View
  Activity
             ● Used to Redirect application to
               addressable URL
             ● Can call BTFs
             ● Can call View activities on UTF
             ● Can call external sites e.g. http:
               //www.google.com
             ● No Control returned to caller
Task flow Components
 Save point
  Restore
              ● Allow to restore application to
                previous state
              ● Supports Save for later
                functionality
              ● Only required where Restore
                needed
Task flow Components
Parent      ● Allows to trigger
Action         navigation of Parent
               view activity in ADF
               Region
Control
flow case   ● Identifies how control will
               paas from one activity to
               another

Wild-card   ● Represents global
               navigation case
Building Task Flows
Building Task Flows
Task flow Templates
● You can create task flow
  templates for common
  activities in bounded
  task flows
● Common use case is
  error handler
● Best practice is to use
  template for all bounded
  task flows
How to Reuse Task flows in
 Different Application
● Create Deployment Profile ADF
  Library Jar
● Deploy as ADF library Jar
● Create Connection as File system in
  Resource Palette
● Drag and Drop from Resource
  Palette to your page and ADD libary
  path
● Complete Tutorial available at http:
  //www.baigzeeshan.
  com/2010/08/sharing-business-
  components-and-task.html
Tips to build Reusable
Task Flows
● Build BTFs in seperate application then
  merge them into master app using ADF Lib
  Jar
● Use task flow with page fragments
● Use Input parameters
● Use Router activity as default
● Set conditional behaviour of UI components
  based on Input parameters e.g. read-only,
  show/hide
● Use dynamic regions
Demo Example
●    Search Employees - Provides Search facility
Secured, called as normal on Home page and as List of values on
upload photo task flow
 ● View / Edit Employees
 Secured, Allows 'Managers' to edit and 'endusers' to view
employee detail. Displayed as ADF region and deployed as ADF
library jar
 ● Upload Photo - Task flow to upload employee photo
Secured, Called as Dialog and later calling search flow in a model
dialog
 ● Public
Runs a flash movie on home page for all unauthenticated users for
authenticated users displays graphs based on user type
My Contact
BLOG
http://baigzeeshan.com

YouTube Channel
http://youtube.com/baigsorcl

Email
zeeshan.baig82@gmail.com
Congratulations......
You are now Task flows Expert.... Thank you

More Related Content

What's hot

Creating xml publisher documents with people code
Creating xml publisher documents with people codeCreating xml publisher documents with people code
Creating xml publisher documents with people code
Randall Groncki
 

What's hot (20)

Best Implementation Practices with BI Publisher
Best Implementation Practices with BI PublisherBest Implementation Practices with BI Publisher
Best Implementation Practices with BI Publisher
 
Oracle Fusion Employment Models
Oracle Fusion Employment ModelsOracle Fusion Employment Models
Oracle Fusion Employment Models
 
Creating xml publisher documents with people code
Creating xml publisher documents with people codeCreating xml publisher documents with people code
Creating xml publisher documents with people code
 
Oracle Fusion Cloud Absence Management
Oracle Fusion Cloud Absence ManagementOracle Fusion Cloud Absence Management
Oracle Fusion Cloud Absence Management
 
3 functional setup manager
3   functional setup manager3   functional setup manager
3 functional setup manager
 
Send mail with attached report layout
Send mail with attached report layoutSend mail with attached report layout
Send mail with attached report layout
 
Redux Thunk
Redux ThunkRedux Thunk
Redux Thunk
 
Oracle_WIP.ppt
Oracle_WIP.pptOracle_WIP.ppt
Oracle_WIP.ppt
 
BOM & WIP
BOM & WIPBOM & WIP
BOM & WIP
 
Oracle Time and Labor (OTL) Setup for Project
Oracle Time and Labor (OTL) Setup for ProjectOracle Time and Labor (OTL) Setup for Project
Oracle Time and Labor (OTL) Setup for Project
 
08 define enterprise hcm information
08 define enterprise hcm information08 define enterprise hcm information
08 define enterprise hcm information
 
Otl Oracle Time and Labor
Otl Oracle Time and LaborOtl Oracle Time and Labor
Otl Oracle Time and Labor
 
Oracle R12.1.2 and R12.1.3 features
Oracle R12.1.2 and R12.1.3 featuresOracle R12.1.2 and R12.1.3 features
Oracle R12.1.2 and R12.1.3 features
 
Better web apps with React and Redux
Better web apps with React and ReduxBetter web apps with React and Redux
Better web apps with React and Redux
 
Flutter hooks tutorial (part 1) flutter animation using hooks (use effect and...
Flutter hooks tutorial (part 1) flutter animation using hooks (use effect and...Flutter hooks tutorial (part 1) flutter animation using hooks (use effect and...
Flutter hooks tutorial (part 1) flutter animation using hooks (use effect and...
 
BI Publisher Data model design document
BI Publisher Data model design documentBI Publisher Data model design document
BI Publisher Data model design document
 
Infolets and OTBI Deep link Actionable Reports - Configuration Work Book
Infolets and OTBI Deep link Actionable Reports - Configuration Work Book Infolets and OTBI Deep link Actionable Reports - Configuration Work Book
Infolets and OTBI Deep link Actionable Reports - Configuration Work Book
 
Sequence and Traverse - Part 2
Sequence and Traverse - Part 2Sequence and Traverse - Part 2
Sequence and Traverse - Part 2
 
React redux-tutoriel-1
React redux-tutoriel-1React redux-tutoriel-1
React redux-tutoriel-1
 
Query Worker Contracts Details Oracle Fusion Cloud
Query Worker Contracts Details Oracle Fusion CloudQuery Worker Contracts Details Oracle Fusion Cloud
Query Worker Contracts Details Oracle Fusion Cloud
 

Similar to Oracle ADF Task Flows for Beginners

Similar to Oracle ADF Task Flows for Beginners (20)

ADF Taskflows for beginners
ADF Taskflows for beginnersADF Taskflows for beginners
ADF Taskflows for beginners
 
Build your Business Services using ADF Task Flows
Build your Business Services using ADF Task FlowsBuild your Business Services using ADF Task Flows
Build your Business Services using ADF Task Flows
 
Introduction to Oracle ADF Task Flows
Introduction to Oracle ADF Task FlowsIntroduction to Oracle ADF Task Flows
Introduction to Oracle ADF Task Flows
 
Silicon Valley Code Camp - JSF Controller for Reusability
Silicon Valley Code Camp - JSF Controller for ReusabilitySilicon Valley Code Camp - JSF Controller for Reusability
Silicon Valley Code Camp - JSF Controller for Reusability
 
Apache Airflow in the Cloud: Programmatically orchestrating workloads with Py...
Apache Airflow in the Cloud: Programmatically orchestrating workloads with Py...Apache Airflow in the Cloud: Programmatically orchestrating workloads with Py...
Apache Airflow in the Cloud: Programmatically orchestrating workloads with Py...
 
Airflow Intro-1.pdf
Airflow Intro-1.pdfAirflow Intro-1.pdf
Airflow Intro-1.pdf
 
Free the Functions with Fn project!
Free the Functions with Fn project!Free the Functions with Fn project!
Free the Functions with Fn project!
 
Spark Workflow Management
Spark Workflow ManagementSpark Workflow Management
Spark Workflow Management
 
React - The JavaScript Library for User Interfaces
React - The JavaScript Library for User InterfacesReact - The JavaScript Library for User Interfaces
React - The JavaScript Library for User Interfaces
 
An intro to git
An intro to gitAn intro to git
An intro to git
 
Data Engineer's Lunch #44: Prefect
Data Engineer's Lunch #44: PrefectData Engineer's Lunch #44: Prefect
Data Engineer's Lunch #44: Prefect
 
Oracle ADF Architecture TV - Design - Task Flow Overview
Oracle ADF Architecture TV - Design - Task Flow OverviewOracle ADF Architecture TV - Design - Task Flow Overview
Oracle ADF Architecture TV - Design - Task Flow Overview
 
Web dynpro
Web dynproWeb dynpro
Web dynpro
 
Liferay portals in real projects
Liferay portals  in real projectsLiferay portals  in real projects
Liferay portals in real projects
 
Dataflow.pptx
Dataflow.pptxDataflow.pptx
Dataflow.pptx
 
Strategies and Tips for Building Enterprise Drupal Applications - PNWDS 2013
Strategies and Tips for Building Enterprise Drupal Applications - PNWDS 2013Strategies and Tips for Building Enterprise Drupal Applications - PNWDS 2013
Strategies and Tips for Building Enterprise Drupal Applications - PNWDS 2013
 
Fighting legacy with hexagonal architecture and frameworkless php
Fighting legacy with hexagonal architecture and frameworkless phpFighting legacy with hexagonal architecture and frameworkless php
Fighting legacy with hexagonal architecture and frameworkless php
 
Prefect Paris Airflow Meetup Jeff Hale April 2023.pdf
Prefect Paris Airflow Meetup Jeff Hale April 2023.pdfPrefect Paris Airflow Meetup Jeff Hale April 2023.pdf
Prefect Paris Airflow Meetup Jeff Hale April 2023.pdf
 
RedisConf17 - Dynomite - Making Non-distributed Databases Distributed
RedisConf17 - Dynomite - Making Non-distributed Databases DistributedRedisConf17 - Dynomite - Making Non-distributed Databases Distributed
RedisConf17 - Dynomite - Making Non-distributed Databases Distributed
 
Making Workflows Work for You
Making Workflows Work for YouMaking Workflows Work for You
Making Workflows Work for You
 

More from DataNext Solutions

Working with Portlets in ADF and Webcenter
Working with Portlets in ADF and WebcenterWorking with Portlets in ADF and Webcenter
Working with Portlets in ADF and Webcenter
DataNext Solutions
 
Getting Started with Oracle APEX
Getting Started with Oracle APEXGetting Started with Oracle APEX
Getting Started with Oracle APEX
DataNext Solutions
 
The Challenges Oracle Forms Migration to ADF
The Challenges Oracle Forms Migration to ADFThe Challenges Oracle Forms Migration to ADF
The Challenges Oracle Forms Migration to ADF
DataNext Solutions
 
A guide to ADF fusion development
A guide to ADF fusion developmentA guide to ADF fusion development
A guide to ADF fusion development
DataNext Solutions
 

More from DataNext Solutions (8)

Cloud Computing Basics
Cloud Computing BasicsCloud Computing Basics
Cloud Computing Basics
 
Getting Started with Web Services
Getting Started with Web ServicesGetting Started with Web Services
Getting Started with Web Services
 
Talking Services with Oracle ADF and Oracle SOA Suite
Talking Services with Oracle ADF and Oracle SOA SuiteTalking Services with Oracle ADF and Oracle SOA Suite
Talking Services with Oracle ADF and Oracle SOA Suite
 
Oracle SOA Suite for High availability Enterprises
Oracle SOA Suite for High availability EnterprisesOracle SOA Suite for High availability Enterprises
Oracle SOA Suite for High availability Enterprises
 
Working with Portlets in ADF and Webcenter
Working with Portlets in ADF and WebcenterWorking with Portlets in ADF and Webcenter
Working with Portlets in ADF and Webcenter
 
Getting Started with Oracle APEX
Getting Started with Oracle APEXGetting Started with Oracle APEX
Getting Started with Oracle APEX
 
The Challenges Oracle Forms Migration to ADF
The Challenges Oracle Forms Migration to ADFThe Challenges Oracle Forms Migration to ADF
The Challenges Oracle Forms Migration to ADF
 
A guide to ADF fusion development
A guide to ADF fusion developmentA guide to ADF fusion development
A guide to ADF fusion development
 

Recently uploaded

1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
SanaAli374401
 

Recently uploaded (20)

Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptxSOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
SOCIAL AND HISTORICAL CONTEXT - LFTVD.pptx
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
An Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdfAn Overview of Mutual Funds Bcom Project.pdf
An Overview of Mutual Funds Bcom Project.pdf
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 

Oracle ADF Task Flows for Beginners

  • 1. ADF Task Flows For Beginners By Zeeshan Baig, Oracle ACE www.baigzeeshan.com
  • 2. A little about me..... I am currently working as Senior Developer at NMH in Chicago. ● 10+ years of experience in Oracle Development tools (Database, Forms, APEX, ADF, Fusion) ● Oracle ACE, OCP DBA certified in 8, 8i and 10g ● Technical blog on ADF and other fusion technologies at www.baigzeeshan.com ● YouTube channel http://youtube.com/baigsorcl Disclaimer: The views expressed are my own and does not affiliates with my employer
  • 3. Agenda ● What are Task Flows? ● Types of Task Flows? ● Other concepts used in Task flows ● Understand different components to build task flows ● Introduction of Task flows templates ● Some tips on building reusable task flows ● Demo ● Questions Thanks Google, Flickr.com and Oracle documentation for images used in this presentation. These images are unmodified and used for educational purpose only.
  • 4. What are task flows their types and other concepts?
  • 5. What are Task Flows? In simple words ● Visual representation of app process flow ● Each TF contains portion of app navigation ● They are similar to traditional flow charts ● Primary purpose is reuse
  • 6. Types of Task flows Un Bounded Bounded Entry Points Entry Points Exit Points Exit Points
  • 7. Types of Task Flows Key Differences Un-bounded (UTF) Bounded (BTF) ● Public pages / No boundry ● Well defined boundry ● No reuse ● Reusable ● No input parameters ● Can take input parameters ● No return values ● Can return values ● No transaction Control ● Allows transaction control ● No security ● Security control ● e.g. Pages - Home, Help, ● e.g. Register, Checkout, Search, Navigations other application processes
  • 8. Bounded Task flows ● A typical application contains one unbounded task flow and many bounded task flows ● Build bounded task flows in its own application / workspace BTFs can ● Create with Pages or Page fragments ● Create as Train flows ● Call in a Dialog
  • 9. Bounded Task flows Train Flows Video tutorial at http://www.baigzeeshan.com/2010/10/creating-train-flows-in-oracle-adf. html
  • 10. Page vs Page Fragment Page Fragment ● Renders as content in another JSF page ● Must not contains the af:document, af:form, f:view, head, body and html because JSF page already has it ● has .jsff extension Page ● can contains many fragments ● extension .jsf or .jspx
  • 11. Task flow Regions Regions are created when you drag and drop a bounded task flow on a page Static Regions Dynamic Regions ● Fixed visiblity ● Visible based on custom logic ● Creates Task flow ● Creates Multi-taskflow binding on page binding ● Tutorial http://www. ● Tutorial baigzeeshan. http://www.baigzeeshan. com/2010/04/creating- com/2010/06/working-with-dynamic-regions- pages-with-regions-in- in-oracle.html oracle.html
  • 12. Task Flow Managed Bean Scopes 1. Application..... Remains till application stops 2. Session.......... Persists till user session 3. PageFlow...... Also known as Task flow scope 4. View............... Lifespan till current page 5. Request......... Lives for duration of request 6. BackingBean. only 7. Flash Scope.. UI Component based Remains Till Next encountered view (new in JSF 2.0)
  • 13. Task flow Managed Bean Scopes
  • 14. OK I got it... now what components i need to build them?
  • 16. Task flow Components View Activity ● Displays a JSF Page or Fragment ● Extension .jsf, .jspx and .jsff (fragments) ● Bookmarkable only in unbounded Task flows ● Can have one or more task flow regions ● Good practice to have page definition file attached
  • 17. Task flow Components Method Call ● Allows to call application logic in task flow Activity ● Drag and drop methods from Data Control ● OR DnD from component palette then configure parameters to call managed bean methods ● Common usages are initialization, Clean-up, expcetion handler ● Can have return values in case of method returns some result ● if method is of 'void' type then outcome would be simple string
  • 18. Task flow Components Router Activity ● Route to any activity based on EL expression ● Have default condition ● No Limits on conditions ● No limits on destinations ● Good practice is to start your task flows with Router for any future customizations.
  • 19. Task flow Components Task flow call activity ● Calls another task flow from unbounded and bounded task flow ● Can take input parameters ● Can return output parameters ● Drag and Drop task flow from Application navigator to task flow ● Drag and Drop task flow to the page as link or button
  • 20. Task flow Components Task Flow Return ● Used to ends or send controls back to caller in Bounded Task flows ● Does either Commit or Rollback (If Task flow is transactional) ● Set outcome to required control flow navigation-case. ● BTF can have many TF return activities
  • 21. Task flow Components URL View Activity ● Used to Redirect application to addressable URL ● Can call BTFs ● Can call View activities on UTF ● Can call external sites e.g. http: //www.google.com ● No Control returned to caller
  • 22. Task flow Components Save point Restore ● Allow to restore application to previous state ● Supports Save for later functionality ● Only required where Restore needed
  • 23. Task flow Components Parent ● Allows to trigger Action navigation of Parent view activity in ADF Region Control flow case ● Identifies how control will paas from one activity to another Wild-card ● Represents global navigation case
  • 26. Task flow Templates ● You can create task flow templates for common activities in bounded task flows ● Common use case is error handler ● Best practice is to use template for all bounded task flows
  • 27. How to Reuse Task flows in Different Application ● Create Deployment Profile ADF Library Jar ● Deploy as ADF library Jar ● Create Connection as File system in Resource Palette ● Drag and Drop from Resource Palette to your page and ADD libary path ● Complete Tutorial available at http: //www.baigzeeshan. com/2010/08/sharing-business- components-and-task.html
  • 28. Tips to build Reusable Task Flows ● Build BTFs in seperate application then merge them into master app using ADF Lib Jar ● Use task flow with page fragments ● Use Input parameters ● Use Router activity as default ● Set conditional behaviour of UI components based on Input parameters e.g. read-only, show/hide ● Use dynamic regions
  • 29. Demo Example ● Search Employees - Provides Search facility Secured, called as normal on Home page and as List of values on upload photo task flow ● View / Edit Employees Secured, Allows 'Managers' to edit and 'endusers' to view employee detail. Displayed as ADF region and deployed as ADF library jar ● Upload Photo - Task flow to upload employee photo Secured, Called as Dialog and later calling search flow in a model dialog ● Public Runs a flash movie on home page for all unauthenticated users for authenticated users displays graphs based on user type
  • 30.
  • 32. Congratulations...... You are now Task flows Expert.... Thank you