Oracle SOAスイートでのSOAアプリケーションの開発 ビジネス・ルール・サービス・コンポーネントの使用 宣言コンポーネントおよびタスク・フローの使用 Oracle Business Rulesエディタの宣言コンポーネントの概要 ルール・エディタ・コンポーネントを使用したサンプル・アプリケーションの作成および実行方法 .jspxファイルの作成方法 .jspxファイルの作成方法 次のタスクは、ルール・エディタ・コンポーネント・タグを挿入する.jspxファイルの作成です。 ルール・エディタ・コンポーネント・タグを含めるための.jspxファイルの作成には: Oracle JDeveloperを開きます。 「ファイル」メニューから、「新規」を選択し、次に「JSF」を選択します。 「JSFページ」を選択して、「OK」をクリックします。 ドキュメント・タイプに「JSP XML」を選択します。 ファイル名にrulesEditor.jspxを入力します。「OK」をクリックします。 JDeveloperの「コンポーネント」ウィンドウに「RulesEditor」が表示されます。 「RulesEditor」を選択すると、「Rulesdc」タグが表示されます。 「rulesdc」タグをJSPXファイルにドラッグ・アンド・ドロップします。次のようにして、「rulesDC」タグを手動でjspxファイルに追加することもできます。<?xml version='1.0' encoding='UTF-8'?> <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:f="http://java.sun.com/jsf/core" xmlns:af="http://xmlns.oracle.com/adf/faces/rich" xmlns:rdc="http://xmlns.oracle.com/bpel/rules/editor"> <jsp:directive.page contentType="text/html;charset=UTF-8"/> <f:view> <af:document title="rulesEditor" id="d1"> <af:form id="f1"> <af:panelGridLayout id="pgl1" inlineStyle="margin:15px;" styleClass="AFStretchWidth" partialTriggers="cb1 cb3 cb4"> <af:gridRow id="gr2"> <af:gridCell marginStart="5px" marginEnd="5px" width="100%" halign="stretch" id="gc1"> <af:panelGroupLayout id="pgl2" layout="horizontal"> <af:commandButton text="Save Dict" action="#{someBean.saveDictionary}" id="cb1"/> <af:spacer width="10" height="10" id="s2"/> <af:commandButton text="Validate" id="cb3" action="#{someBean.validate}" partialSubmit="true"/> <af:spacer width="10" height="10" id="s8"/> <af:commandButton text="Toggle Mode" id="cb4" action="#{someBean.toggleMode}" partialSubmit="true"/> </af:panelGroupLayout> </af:gridCell> </af:gridRow> <af:gridRow height="100%" id="gr1"> <af:gridCell marginStart="5px" marginEnd="5px" width="100%" halign="stretch" valign="stretch" id="gc2"> <rdc:rulesdc rulesetModel="#{someBean.ruleSetModel}" id="r1" ifThenPreferences="#{someBean.ifThenPreferences}" dtPreferences="#{someBean.dtPreferences}" viewOnly="#{someBean.viewOnly}" disableVerbalRules="false"></rdc:rulesdc> </af:gridCell> </af:gridRow> </af:panelGridLayout> </af:form> </af:document> </f:view> </jsp:root>