Forum Stats

  • 3,827,551 Users
  • 2,260,791 Discussions
  • 7,897,297 Comments

Discussions

how to pass parameters to individual regions in multitaskflow

I have a page, where the regions are added dynamically (using multiTaskFlow ). All the regions are of the same type( defined by same taskflow definition) and hence each region takes a different values for the same parameter type.

How do we pass different parameter values, when creating TaskFlowBindingAttributes?

Since TaskFlowBindingAttributes takes parametersMap as an EL string, I couldn't figure out , how to define the EL so that each region gets its parameter?

Following are the code snippets:

Java code for that is creating a List<TaskFlowBindingAttributes>

         for(MyRegion region: regionList)

         {

             TaskFlowBindingAttributes tfBindAttr = new TaskFlowBindingAttributes();

             tfBindAttr.setId(region.getId());

             tfBindAttr.setTaskFlowId(new TaskFlowId("/WEB-INF/core/custom_app_task-flow.xml", "custom_app_task-flow"));

             tfBindAttr.setRefreshCondition("ifNeeded");

             tfBindAttr.setParametersMap(""); //??? How to pass params here since this takes EL String.

             list.add(tfBindAttr);

         }

Multitaskflow entry in pageDef file:

<multiTaskFlow id="multiRegion1"

                    taskFlowList="#{viewScope.core_extensibility_cusapp_model.uiAppTemplate.taskFlowBindings}"

xmlns="http://xmlns.oracle.com/adf/controller/binding"/>

Jspx code:

<af:forEach var="tf"

items="#{bindings.multiRegion1.taskFlowBindingList}">

<cust:showDetailFrame shortDesc="#{''}" id="sdf2">

<af:region value="#{tf.regionModel}" id="r1"/>

</cust:showDetailFrame>

</af:forEach>

-Vinay

Tagged:
This discussion has been closed.