Hello,
I have a dynamic task flow in my page and I used this code and it's working :
jsff :
<af:region value="#{bindings.dynamicTF.regionModel}" id="r1"/>
pageDef :
<taskFlow id="dynamicTF" taskFlowId="#{pageFlowScope.myBean.dynamicTaskFlowId}" activation="deferred"
xmlns="http://xmlns.oracle.com/adf/controller/binding"/>
Bean :
public TaskFlowId getDynamicTaskFlowId() {
ControllerContext context = ControllerContext.getInstance();
ViewPortContext currentRootViewPort = context.getCurrentRootViewPort();
Exception exceptionData = currentRootViewPort.getExceptionData();
if (currentRootViewPort.isExceptionPresent()) {
exceptionData.printStackTrace();
currentRootViewPort.clearException();
FacesContext facesContext = FacesContext.getCurrentInstance();
facesContext.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR, exceptionData.getMessage(), null));
return TaskFlowId.parse(taskFlowId);
}
return TaskFlowId.parse(taskFlowId);
}
The problem is when the task flow needs parameters, I need to pass those parameters programmatically, how can I do that ?
Thank you.