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

📄 insurance-process.rfm

📁 使用Drool规则引擎开发关于保险评估的一个案例。仅供参考
💻 RFM
字号:
<org.drools.ruleflow.core.impl.RuleFlowProcessImpl id="1">  <nodes id="2">    <entry>      <long>2</long>      <org.drools.ruleflow.core.impl.EndNodeImpl id="3">        <id>2</id>        <name>End</name>        <incomingConnections id="4">          <org.drools.ruleflow.core.impl.ConnectionImpl id="5">            <type>1</type>            <from class="org.drools.ruleflow.core.impl.JoinImpl" id="6">              <type>2</type>              <id>8</id>              <name>Join</name>              <incomingConnections id="7">                <org.drools.ruleflow.core.impl.ConnectionImpl id="8">                  <type>1</type>                  <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="9">                    <ruleFlowGroup>insurancecalcule</ruleFlowGroup>                    <id>4</id>                    <name>insurancecalcule</name>                    <incomingConnections id="10">                      <org.drools.ruleflow.core.impl.ConnectionImpl id="11">                        <type>1</type>                        <from class="org.drools.ruleflow.core.impl.ActionNodeImpl" id="12">                          <action class="org.drools.ruleflow.core.impl.DroolsConsequenceAction" id="13">                            <consequence>System.out.println(&quot;Insurance calculate&quot;);</consequence>                          </action>                          <id>9</id>                          <name>Action</name>                          <incomingConnections id="14">                            <org.drools.ruleflow.core.impl.ConnectionImpl id="15">                              <type>1</type>                              <from class="org.drools.ruleflow.core.impl.SplitImpl" id="16">                                <type>2</type>                                <constraints id="17">                                  <entry>                                    <org.drools.ruleflow.core.impl.ConnectionImpl reference="15"/>                                    <org.drools.ruleflow.core.impl.ConstraintImpl id="18">                                      <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 id="19">                                      <type>1</type>                                      <from class="org.drools.ruleflow.core.impl.SplitImpl" reference="16"/>                                      <to class="org.drools.ruleflow.core.impl.ActionNodeImpl" id="20">                                        <action class="org.drools.ruleflow.core.impl.DroolsConsequenceAction" id="21">                                          <consequence>System.out.println(&quot;Rejection&quot;);</consequence>                                        </action>                                        <id>10</id>                                        <name>Action</name>                                        <incomingConnections id="22">                                          <org.drools.ruleflow.core.impl.ConnectionImpl reference="19"/>                                        </incomingConnections>                                        <outgoingConnections id="23">                                          <org.drools.ruleflow.core.impl.ConnectionImpl id="24">                                            <type>1</type>                                            <from class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="20"/>                                            <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="25">                                              <ruleFlowGroup>rejection</ruleFlowGroup>                                              <id>5</id>                                              <name>rejection</name>                                              <incomingConnections id="26">                                                <org.drools.ruleflow.core.impl.ConnectionImpl reference="24"/>                                              </incomingConnections>                                              <outgoingConnections id="27">                                                <org.drools.ruleflow.core.impl.ConnectionImpl id="28">                                                  <type>1</type>                                                  <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="25"/>                                                  <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="6"/>                                                </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="29">                                      <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="30">                                  <org.drools.ruleflow.core.impl.ConnectionImpl id="31">                                    <type>1</type>                                    <from class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" id="32">                                      <ruleFlowGroup>risk assessment</ruleFlowGroup>                                      <id>3</id>                                      <name>risk assessment</name>                                      <incomingConnections id="33">                                        <org.drools.ruleflow.core.impl.ConnectionImpl id="34">                                          <type>1</type>                                          <from class="org.drools.ruleflow.core.impl.StartNodeImpl" id="35">                                            <id>1</id>                                            <name>Start</name>                                            <incomingConnections id="36"/>                                            <outgoingConnections id="37">                                              <org.drools.ruleflow.core.impl.ConnectionImpl reference="34"/>                                            </outgoingConnections>                                          </from>                                          <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="32"/>                                        </org.drools.ruleflow.core.impl.ConnectionImpl>                                      </incomingConnections>                                      <outgoingConnections id="38">                                        <org.drools.ruleflow.core.impl.ConnectionImpl reference="31"/>                                      </outgoingConnections>                                    </from>                                    <to class="org.drools.ruleflow.core.impl.SplitImpl" reference="16"/>                                  </org.drools.ruleflow.core.impl.ConnectionImpl>                                </incomingConnections>                                <outgoingConnections id="39">                                  <org.drools.ruleflow.core.impl.ConnectionImpl reference="15"/>                                  <org.drools.ruleflow.core.impl.ConnectionImpl reference="19"/>                                </outgoingConnections>                              </from>                              <to class="org.drools.ruleflow.core.impl.ActionNodeImpl" reference="12"/>                            </org.drools.ruleflow.core.impl.ConnectionImpl>                          </incomingConnections>                          <outgoingConnections id="40">                            <org.drools.ruleflow.core.impl.ConnectionImpl reference="11"/>                          </outgoingConnections>                        </from>                        <to class="org.drools.ruleflow.core.impl.RuleSetNodeImpl" reference="9"/>                      </org.drools.ruleflow.core.impl.ConnectionImpl>                    </incomingConnections>                    <outgoingConnections id="41">                      <org.drools.ruleflow.core.impl.ConnectionImpl reference="8"/>                    </outgoingConnections>                  </from>                  <to class="org.drools.ruleflow.core.impl.JoinImpl" reference="6"/>                </org.drools.ruleflow.core.impl.ConnectionImpl>                <org.drools.ruleflow.core.impl.ConnectionImpl reference="28"/>              </incomingConnections>              <outgoingConnections id="42">                <org.drools.ruleflow.core.impl.ConnectionImpl reference="5"/>              </outgoingConnections>            </from>            <to class="org.drools.ruleflow.core.impl.EndNodeImpl" reference="3"/>          </org.drools.ruleflow.core.impl.ConnectionImpl>        </incomingConnections>        <outgoingConnections id="43"/>      </org.drools.ruleflow.core.impl.EndNodeImpl>    </entry>    <entry>      <long>4</long>      <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="9"/>    </entry>    <entry>      <long>9</long>      <org.drools.ruleflow.core.impl.ActionNodeImpl reference="12"/>    </entry>    <entry>      <long>8</long>      <org.drools.ruleflow.core.impl.JoinImpl reference="6"/>    </entry>    <entry>      <long>1</long>      <org.drools.ruleflow.core.impl.StartNodeImpl reference="35"/>    </entry>    <entry>      <long>3</long>      <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="32"/>    </entry>    <entry>      <long>10</long>      <org.drools.ruleflow.core.impl.ActionNodeImpl reference="20"/>    </entry>    <entry>      <long>7</long>      <org.drools.ruleflow.core.impl.SplitImpl reference="16"/>    </entry>    <entry>      <long>5</long>      <org.drools.ruleflow.core.impl.RuleSetNodeImpl reference="25"/>    </entry>  </nodes>  <variables id="44"/>  <lastNodeId>10</lastNodeId>  <imports id="45">    <string>org.acme.insurance.base.Rejection</string>    <string>org.acme.insurance.base.Policy</string>  </imports>  <id>insuranceProcess</id>  <name>insurance-process</name>  <version>1.0</version>  <type>RuleFlow</type>  <packageName>org.acme.insurance.base</packageName></org.drools.ruleflow.core.impl.RuleFlowProcessImpl>

⌨️ 快捷键说明

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