Rule engine command Tags(run)
ルール実行エンジンのrun()メソッドで実行される処理で、データベースの参照や更新等を定義します。
(実行例)
boolean result = getRuleEngine("sample").run();
<rule id="sample">
<run>
<select id="USER_LIST" entity="SYS_USER">
<where>
<data key="USER_CODE" map="USER_CODE" type="eq" />
</where>
</select>
</run>
</rule>
- 使用可能箇所
- rule
Sub Tags
- TAG
- 機 能
- condition
- runタグの実行条件判定しタグを実行するかスキップするか制御する
- break
-
エラー時に次のタグを実行するか停止するかを定義
※エラーはerrorタグ及びreferenceタグ処理時に発生する
- error
- 強制的にエラーを発生させる
- reference
- 指定したruleのcheckタグおよびrunタグを実行する
- select
- データベースの参照を行う
- create
- データベースの登録を行う
- update
- データベースの更新を行う
- delete
- データベースの削除を行う
- custom
- データベースに任意のSQLを実行する
- event
- DataBeanの指定したメソッドを実行する
- calc
- 指定の演算処理を実行する