Wednesday, October 20, 2010

Creating Train flows in Oracle ADF


You must've seen the wizard driven registration forms on the web which provides pretty useful approach break the whole tasks into limited screens. In ADF you can do the same by using Train flows in bounded task flow in simple words Train is one type of bounded task flows.

In this post we will see how to create Train flows in Oracle ADF and we will also calling another bounded task flow in between.

There is a little trick when you are creating a Train flow based on same entity you need to skip validations on the page definition to avoid errors.

Download the sample code

More details watch in this video

Check this great Oracle ADF book

Happy JDeveloping,
Zeeshan Baig


  1. Thanks for the tutorial. I have a question:
    How would you label af:train component?.

    i.e. Instead of giving Page title "Enter Employee Basic Info", I want to give Labels to all three Blocks in a train component (between Train blocks and Back/Next Button) so that User knows what would be the next step.

  2. Hi Anandsagar,

    By default train shows the next step in a train component.

  3. Where is the SQL DDL for this example?

  4. Hi Patrick,

    I am using the default HR schema in oracle database.


  5. Thanks ZB. How can I add pagination to the list of employees?

  6. Hi Zeeshan,

    I want to develop a train component with 2 Train stops.
    However data entry (CreateInsert) would be based on same Entity Object. I have few mandatory attributes on stop1 and few mandatory attributes on Stop2. However when I am trying to navigate from Train Stop1 to Train Stop2 it is throwing error that XX_attr must not be null which is on TRain stop2. How to overcome this error.


    1. Hi,

      You can skip the validation to later stage.. Check this page


    2. Also in the same video i mentioned about skipping validation and i have a similar use case.