4 Replies Latest reply on Jan 28, 2013 4:11 PM by user13254493

    Problem with task flow call

    user13254493
      Hi All. I need help...
      I made Buonded Task Flow with name "task-flow-definition" :
      <?xml version="1.0" encoding="UTF-8" ?>
      <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <task-flow-definition id="task-flow-definition">
      <default-activity>Sh</default-activity>
      <data-control-scope>
      <shared/>
      </data-control-scope>
      <view id="Sh">
      <page>/Sh.jsf</page>
      </view>
      <view id="Ed">
      <page>/Ed.jsf</page>
      </view>
      <task-flow-return id="Ret">
      <outcome>
      <name>Ret</name>
      </outcome>
      </task-flow-return>
      <control-flow-rule id="__1">
      <from-activity-id>Sh</from-activity-id>
      <control-flow-case id="__2">
      <from-outcome>Edit</from-outcome>
      <to-activity-id>Ed</to-activity-id>
      </control-flow-case>
      <control-flow-case id="__5">
      <from-outcome>Exit</from-outcome>
      <to-activity-id>Ret</to-activity-id>
      </control-flow-case>
      </control-flow-rule>
      <control-flow-rule id="__3">
      <from-activity-id>Ed</from-activity-id>
      <control-flow-case id="__4">
      <from-outcome>Show</from-outcome>
      <to-activity-id>Sh</to-activity-id>
      </control-flow-case>
      </control-flow-rule>
      </task-flow-definition>
      </adfc-config>

      In adfc-config drop Welcome.jspx page and task-flow-definition on diagram. And add Control Flow from Welcome to task-flow-definition with name TfCall.

      <?xml version="1.0" encoding="UTF-8" ?>
      <adfc-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.2">
      <view id="Welcome">
      <page>/Welcome.jspx</page>
      </view>
      <task-flow-call id="task-flow-definition">
      <task-flow-reference>
      <document>/WEB-INF/task-flow-definition.xml</document>
      <id>task-flow-definition</id>
      </task-flow-reference>
      </task-flow-call>
      <control-flow-rule id="__2">
      <from-activity-id>Welcome</from-activity-id>
      <control-flow-case id="__3">
      <from-outcome>TfCall</from-outcome>
      <to-activity-id>task-flow-definition</to-activity-id>
      </control-flow-case>
      </control-flow-rule>
      <managed-bean id="__1">
      <managed-bean-name>loginBean</managed-bean-name>
      <managed-bean-class>ru.intei.view.loginBean</managed-bean-class>
      <managed-bean-scope>request</managed-bean-scope>
      </managed-bean>
      </adfc-config>

      in Welcome.jspx I add command button:

      <af:commandButton text="commandButton 1" id="cb1" action="TfCall"
      rendered="#{securityContext.authenticated}"/>

      ADF Authentication and Authorization is enabled. Grants to task-flow-definition added.

      Why when I click on button occurs nothing?