5 Replies Latest reply: Mar 5, 2013 2:10 PM by Sudipto Desmukh RSS

    While passing the parameter b/w  the BTF  getting Param not found

    Rajashekar Thippireddy
      Hi,


      i have two task flows each having one jspx page.

      -->taskflow1 has pageA.jspx view with countries table,after selecting any row , if i select a button that should pass the selected country name to Tasflow2(i am setting the value to bean by using setProperylistener). i used Tasflow2 as a taskflow call in taskflow1.
      --> I created a managed bean , to hold the selected country name in pageFlowScope.
      -->i have aded selectedContryName as return property in Taskflow1.(value as #{pageFlowScope.pageABean.selectedCountry}, class type String )

      -->in task flow call i have given input propety selectedContryName .(value as #{{pageFlowScope.selectedContryName}, and clicked pass by value)

      -->i have defined output text property( #{pageFlowScope.selectedContryName}) in page2.jspx which is in taskflow2 .

      I am getting the following error when i click the button.


      *<MISSING_REQUIRED_PARAMETER> </PageB_btf.xml#PageB_btf> selectedContryName*

      below is TaskflowA_btf.xml:


      <?xml version="1.0" encoding="windows-1252" ?>
      <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <task-flow-definition id="TaskFlowA_btf">
      <default-activity>PageA</default-activity>
      <data-control-scope>
      <shared/>
      </data-control-scope>

      <return-value-definition id="__2">
      <name>selectedContryName</name>
      <value>#{pageFlowScope.pageABean.selectedCountry}</value>
      <class>java.lang.String</class>
      </return-value-definition>

      <managed-bean id="__1">
      <managed-bean-name>pageABean</managed-bean-name>
      <managed-bean-class>model.bean.pageAclass</managed-bean-class>
      <managed-bean-scope>pageFlow</managed-bean-scope>
      </managed-bean>

      <view id="PageA">
      <page>/PageA.jspx</page>
      </view>

      <task-flow-call id="PageB_btf">

      <task-flow-reference>
      <document>/PageB_btf.xml</document>
      <id>PageB_btf</id>
      </task-flow-reference>

      <input-parameter id="__8">
      <name>selectedContryName</name>
      <value>#{pageFlowScope.selectedContryName}</value>
      <pass-by-value/>
      </input-parameter>

      </task-flow-call>

      <control-flow-rule id="__3">
      <from-activity-id>PageA</from-activity-id>
      <control-flow-case id="__4">
      <from-outcome>go</from-outcome>
      <to-activity-id>PageB_btf</to-activity-id>
      </control-flow-case>
      </control-flow-rule>
      </task-flow-definition>
      </adfc-config>


      below is TaskflowB_btf.xml:

      <?xml version="1.0" encoding="windows-1252" ?>
      <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <task-flow-definition id="PageB_btf">
      <default-activity>pageB</default-activity>
           
      <input-parameter-definition id="__1">
      <name>selectedContryName</name>
      <value>#{pageFlowScope.selectedContryName}</value>
      <class>java.lang.String</class>
      <required/>
      </input-parameter-definition>
           
      <managed-bean id="__2">
      <managed-bean-name>pageABean</managed-bean-name>
      <managed-bean-class>model.bean.pageAclass</managed-bean-class>
      <managed-bean-scope>pageFlow</managed-bean-scope>
      </managed-bean>
           
      <view id="pageB">
      <page>/pageB.jspx</page>
      </view>
           
      </task-flow-definition>
      </adfc-config>

      plz helps me ,

      thanks,
      Raja

      Edited by: Rajashekar Thippireddy on Mar 4, 2013 10:21 PM