Forum Stats

  • 3,853,686 Users
  • 2,264,255 Discussions
  • 7,905,430 Comments

Discussions

Dynamic Task Flow with Parameters

Ghazi Hakim
Ghazi Hakim Member Posts: 30
edited Jan 3, 2014 3:51AM in JDeveloper and ADF

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.

Tagged:

Answers

This discussion has been closed.