2015-09-15 74 views
0

我是Oracle MAF的新成員。在我的任務流程中有5個字段。問卷頁面中的第一個。任務流功能

在此問卷頁面:

  • 創建問卷
  • 列表問卷
  • 搜索問卷
  • 報告

這四個領域都存在。如果我點擊任何一個字段,我想要去那個頁面。就像我點擊創建問卷一樣,我想去創建問卷頁面。

請幫助任何人,我該如何做到這一點。我爲任務流使用以下代碼:

<?xml version="1.0" encoding="windows-1252" ?> 
<adfc-mobile-config xmlns="http://xmlns.oracle.com/adf/controller" version="1.0"> 
    <task-flow-definition id="Questionnaire-task-flow"> 
    <default-activity>Questionnaire</default-activity> 
    <view id="Questionnaire"> 
     <page>/Questionnaire.amx</page> 
    </view> 
    <view id="create"> 
     <page>/create.amx</page> 
    </view> 
    <view id="list"> 
     <page>/list.amx</page> 
    </view> 
    <view id="search"> 
     <page>/search.amx</page> 
    </view> 
    <view id="reports"> 
     <page>/reports.amx</page> 
    </view> 
    <control-flow-rule id="__12"> 
     <from-activity-id>Questionnaire</from-activity-id> 
     <control-flow-case id="__13"> 
     <from-outcome>create</from-outcome> 
     <to-activity-id>create</to-activity-id> 
     <transition>slideRight</transition> 
     </control-flow-case> 
     <control-flow-case id="__14"> 
     <from-outcome>list</from-outcome> 
     <to-activity-id>list</to-activity-id> 
     </control-flow-case> 
     <control-flow-case id="__15"> 
     <from-outcome>search</from-outcome> 
     <to-activity-id>search</to-activity-id> 
     </control-flow-case> 
     <control-flow-case id="__16"> 
     <from-outcome>report</from-outcome> 
     <to-activity-id>reports</to-activity-id> 
     </control-flow-case> 
    </control-flow-rule> 
    <page-flow-scope-behavior> 
     <push-new/> 
    </page-flow-scope-behavior> 
    </task-flow-definition> 
</adfc-mobile-config> 

回答

0

使用具有操作屬性的AMX組件。 例子:

<amx:commandLink id="commandLink1" text="create Questionnaire" action="create" /> 

採取行動時,你的名字控制你的任務流的流動情況。

+0

非常感謝。它的工作 –