Friday, 17 June 2016

ADF: Controlling Bounded TaskFlow Progrmatically

One of the generic solution is handling  taskflow programatically, To achieve this  you should get an object of a taskflow at managed bean and then you can call its methods for controlling in taskflow.

You can use the below method for this purpose.


Note: You have to pass the method taskFlowName used in page definition not the original taskflow name.



   public static DCTaskFlowBinding getTaskFlow(String taskFlowName) {  
   
     BindingContext bindingCtx = BindingContext.getCurrent();  
   
     DCBindingContainer dcbCon = (DCBindingContainer)bindingCtx.getCurrentBindingsEntry();  
   
     DCTaskFlowBinding taskFlow = (DCTaskFlowBinding)dcbCon.findExecutableBinding(taskFlowName);  
   
     return taskFlow;  
   }  

6 comments:

  1. Very Nice Information THANK YOU FOR SHARING US..,

    Freshers Software Jobs

    ReplyDelete
  2. Only, it can be presented to the little kids, to make available freedom from varied kinds of diseases.
    Having other items or obstacles in the area will disturb your kid and
    have him to go for them instead, that might bring about him suffering from accidents and slips.
    Her chiropractor performed low amplitude, high velocity manipulation over
    the 3 spinal locations and almost 1.

    ReplyDelete
  3. Very Nice Post : Taction Software is a Premier Mobile App Development Company Based in Noida, India. With a focus on quality, innovation, and customer satisfaction, Taction Software has been helping businesses transform their ideas into reality through bespoke mobile applications that deliver results.

    ReplyDelete
  4. Very Nice Post: Girish Jha understands Baby Boomers. He's built his life coaching practice around helping this generation navigate the challenges and opportunities that come with this stage of life. Whether it's redefining retirement, finding new purpose, or simply adapting to a changing world, Girish offers a supportive and insightful approach to empower Baby Boomers to live their best lives. He helps them tap into their accumulated wisdom and experience to create a fulfilling future.

    ReplyDelete
  5. Very Nice Post : Are you tired of that nagging back pain after a long day at work? Do you find yourself constantly shifting in your seat, struggling to get comfortable? If you're spending hours in an office chair, it's time to consider investing in an ergonomic solution. In Delhi's bustling business environment, comfort and productivity are essential, and the right oergonomic Office chair can make all the difference.

    ReplyDelete
  6. Very Nice Post : Aplite Advisors, a leading provider of business advisory solutions, today announced an expansion of its Corporate Compliance Services specifically tailored for businesses operating in Dwarka, Delhi NCR. This strategic move underscores Aplite Advisors' commitment to supporting businesses in navigating the complexities of regulatory compliance within this rapidly growing region.

    ReplyDelete