Calling taskflow programatically in ADF

Scenario:

If you have two bounded task flow and on one task flow you want to show the employees data and on other you want to show department data. You have to create two page fragment, one will be putted on employee task flow and other will be on department. Now we are going to call department taskflow from employee taskflow.


In order to do this you have to call the following code from your manage bean.


        FacesContext facesContext = FacesContext.getCurrentInstance();
                    NavigationHandler navHandler =
                        facesContext.getApplication().getNavigationHandler();
                    navHandler.handleNavigation(facesContext, null, "dept");


That's all :) Happy Coding.

Comments

Popular posts from this blog

Setting up the environment for Angular2 and Hello World Example in Angular2

Showing number of rows or row count on top and bottom of table in ADF.

Build a Simple ReactJS application using react-cli