Monday, December 19, 2011

ADF TaskFlow Method Call On page load

In taskflow we can drop execute with parama e.g. employees with dept 10 from datacontrols. You can even right click and say create page definition and define operations there for taskflow.

The binding for this will be with method now you need to change this binding and update it to backing bean method (binding value: #{backingBeanScope.MethodCall.CalledMethod}) and now you can execute the execute this mehtod from operation binding as in below code

public void CalledMethod() {

DCBindingContainer dc = (DCBindingContainer) BindingContext.getCurrent().getCurrentBindingsEntry();
OperationBinding operationBinding = dc.getOperationBinding("ExecuteWithParams");
operationBinding.execute();
}

In this way you intitialize your page.