⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 insurance-process.rf

📁 使用Drool规则引擎开发关于保险评估的一个案例。仅供参考
💻 RF
📖 第 1 页 / 共 4 页
字号:
<org.drools.eclipse.flow.ruleflow.core.RuleFlowProcessWrapper id="1" serialization="custom">  <org.drools.eclipse.flow.common.editor.core.ProcessWrapper>    <default>      <elements id="2">        <entry>          <string>5-Wrapper</string>          <org.drools.eclipse.flow.ruleflow.core.RuleSetNodeWrapper id="3" serialization="custom">            <org.drools.eclipse.flow.common.editor.core.DefaultElementWrapper>              <default>                <constraint id="4">                  <x>546</x>                  <y>167</y>                  <width>80</width>                  <height>40</height>                </constraint>                <element class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="5">                  <ruleFlowGroup>rejection</ruleFlowGroup>                  <id>5</id>                  <name>rejection</name>                  <incomingConnections id="6">                    <org.drools.ruleflow.core.impl.ConnectionImpl id="7">                      <type>1</type>                      <from class="org.drools.ruleflow.core.impl.ActionNodeImpl" id="8">                        <action class="org.drools.ruleflow.core.impl.DroolsConsequenceAction" id="9">                          <consequence>System.out.println(&quot;Rejection&quot;);</consequence>                        </action>                        <id>10</id>                        <name>Action</name>                        <incomingConnections id="10">                          <org.drools.ruleflow.core.impl.ConnectionImpl id="11">                            <type>1</type>                            <from class="org.drools.ruleflow.core.impl.SplitImpl" id="12">                              <type>2</type>                              <constraints id="13">                                <entry>                                  <org.drools.ruleflow.core.impl.ConnectionImpl id="14">                                    <type>1</type>                                    <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="12"/>                                    <to class="org.drools.ruleflow.core.impl.ActionNodeImpl" id="15">                                      <action class="org.drools.ruleflow.core.impl.DroolsConsequenceAction" id="16">                                        <consequence>System.out.println(&quot;Insurance calculate&quot;);</consequence>                                      </action>                                      <id>9</id>                                      <name>Action</name>                                      <incomingConnections id="17">                                        <org.drools.ruleflow.core.impl.ConnectionImpl reference="14"/>                                      </incomingConnections>                                      <outgoingConnections id="18">                                        <org.drools.ruleflow.core.impl.ConnectionImpl id="19">                                          <type>1</type>                                          <from class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="15"/>                                          <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="20">                                            <ruleFlowGroup>insurancecalcule</ruleFlowGroup>                                            <id>4</id>                                            <name>insurancecalcule</name>                                            <incomingConnections id="21">                                              <org.drools.ruleflow.core.impl.ConnectionImpl reference="19"/>                                            </incomingConnections>                                            <outgoingConnections id="22">                                              <org.drools.ruleflow.core.impl.ConnectionImpl id="23">                                                <type>1</type>                                                <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="20"/>                                                <to class="org.drools.ruleflow.core.impl.JoinImpl" id="24">                                                  <type>2</type>                                                  <id>8</id>                                                  <name>Join</name>                                                  <incomingConnections id="25">                                                    <org.drools.ruleflow.core.impl.ConnectionImpl reference="23"/>                                                    <org.drools.ruleflow.core.impl.ConnectionImpl id="26">                                                      <type>1</type>                                                      <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="5"/>                                                      <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="24"/>                                                    </org.drools.ruleflow.core.impl.ConnectionImpl>                                                  </incomingConnections>                                                  <outgoingConnections id="27">                                                    <org.drools.ruleflow.core.impl.ConnectionImpl id="28">                                                      <type>1</type>                                                      <from class="org.drools.ruleflow.core.impl.JoinImpl" reference="24"/>                                                      <to class="org.drools.ruleflow.core.impl.EndNodeImpl" id="29">                                                        <id>2</id>                                                        <name>End</name>                                                        <incomingConnections id="30">                                                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="28"/>                                                        </incomingConnections>                                                        <outgoingConnections id="31"/>                                                      </to>                                                    </org.drools.ruleflow.core.impl.ConnectionImpl>                                                  </outgoingConnections>                                                </to>                                              </org.drools.ruleflow.core.impl.ConnectionImpl>                                            </outgoingConnections>                                          </to>                                        </org.drools.ruleflow.core.impl.ConnectionImpl>                                      </outgoingConnections>                                    </to>                                  </org.drools.ruleflow.core.impl.ConnectionImpl>                                  <org.drools.ruleflow.core.impl.ConstraintImpl id="32">                                    <name>constraint</name>                                    <constraint>		not Rejection()		$policy : Policy( approved == true )</constraint>                                    <priority>0</priority>                                  </org.drools.ruleflow.core.impl.ConstraintImpl>                                </entry>                                <entry>                                  <org.drools.ruleflow.core.impl.ConnectionImpl reference="11"/>                                  <org.drools.ruleflow.core.impl.ConstraintImpl id="33">                                    <name>constraint</name>                                    <constraint>$policy : Policy( approved == false )</constraint>                                    <priority>1</priority>                                  </org.drools.ruleflow.core.impl.ConstraintImpl>                                </entry>                              </constraints>                              <id>7</id>                              <name>Split</name>                              <incomingConnections id="34">                                <org.drools.ruleflow.core.impl.ConnectionImpl id="35">                                  <type>1</type>                                  <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="36">                                    <ruleFlowGroup>risk assessment</ruleFlowGroup>                                    <id>3</id>                                    <name>risk assessment</name>                                    <incomingConnections id="37">                                      <org.drools.ruleflow.core.impl.ConnectionImpl id="38">                                        <type>1</type>                                        <from class="org.drools.ruleflow.core.impl.StartNodeImpl" id="39">                                          <id>1</id>                                          <name>Start</name>                                          <incomingConnections id="40"/>                                          <outgoingConnections id="41">                                            <org.drools.ruleflow.core.impl.ConnectionImpl reference="38"/>                                          </outgoingConnections>                                        </from>                                        <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="36"/>                                      </org.drools.ruleflow.core.impl.ConnectionImpl>                                    </incomingConnections>                                    <outgoingConnections id="42">                                      <org.drools.ruleflow.core.impl.ConnectionImpl reference="35"/>                                    </outgoingConnections>                                  </from>                                  <to class="org.drools.ruleflow.core.impl.SplitImpl" reference="12"/>                                </org.drools.ruleflow.core.impl.ConnectionImpl>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -