Pages - Menu

Wednesday, February 5, 2014

Back Bean Switching For Dynamic Region | Oracle ADF

Hi,

Today's Article, i decided to show how to control your ADF Application using One Dynamic Region & Use it to switch among multiple task Flows in smart way using Back Beans without using Switcher UI Component using default Task Flow Bean created while creating Task Flow as Dynamic Region.

Solution point, is how to modify .xml url using dynamic Task Flows Names.

private String taskFlowId = "/WEB-INF/DefaultTask.xml#DefaultTask";
setDynamicTaskFlowId("/WEB-INF/" + getMySwitchingVal() + ".xml#" + getMySwitchingVal());

- before implementing this solution, you have to define multiple Task Flows with cleared names and binding it to Back Bean.


- I Have Menu items to control My Dynamic Switcher to Execute Back Bean Method passing Task Flow Name before using set property listener.


 - Now, we can build our Back Bean Method as below to control it (getMySwitchingVal is getting the task flow name based on set property listener from your Action UI Component).


Notes

1- For Business Needs, we made Auto Roll Back before Switching.
2- PrepareBeforeBavigate Method is just s simple Method to cover business before switching.

References





Regards