[rules-users] How do I persist at every node transition?
kirakane
kirakane at gmail.com
Mon Oct 18 18:56:31 EDT 2010
Forgot to mention I'm using Drools 5.1.1Final and here's my .rf file.
<?xml version="1.0" encoding="UTF-8"?>
<process xmlns="http://drools.org/drools-5.0/process"
xmlns:xs="http://www.w3.org/2001/XMLSchema-instance"
xs:schemaLocation="http://drools.org/drools-5.0/process
drools-processes-5.0.xsd"
type="RuleFlow" name="virus scan flow" id="VirusScan"
package-name="com.apollo" >
<header>
<imports>
<import name="com.sample.*" />
</imports>
</header>
<nodes>
<start id="1" name="Start" x="37" y="88" width="80" height="48" />
<ruleSet id="3" name="Initialize Flow" x="16" y="168" width="123"
height="40" ruleFlowGroup="init" />
<ruleSet id="4" name="Virus Scan" x="36" y="372" width="80" height="40"
ruleFlowGroup="scan" />
<split id="5" name="XOR" x="168" y="360" width="80" height="48" type="2"
>
<constraints>
<constraint toNodeId="8" toType="DROOLS_DEFAULT" name="constraint"
priority="50" type="rule" dialect="mvel" >VirusScanStatus(status !=
"success", count >= 4)</constraint>
<constraint toNodeId="11" toType="DROOLS_DEFAULT" name="constraint"
priority="1" type="rule" dialect="mvel" >VirusScanStatus(status ==
"success")</constraint>
<constraint toNodeId="6" toType="DROOLS_DEFAULT" name="constraint"
priority="1" type="rule" dialect="mvel" >VirusScanStatus(status !=
"success",count < 4)</constraint>
</constraints>
</split>
<ruleSet id="6" name="sleep" x="156" y="276" width="123" height="40"
ruleFlowGroup="sleep" />
<join id="7" name="Retry" x="36" y="276" width="80" height="40" type="2"
/>
<ruleSet id="8" name="Post to Compensation Q" x="153" y="452"
width="123" height="40" ruleFlowGroup="scan_compensation" />
<end id="9" name="End" x="170" y="509" width="80" height="40" />
<ruleSet id="10" name="Remove from Quarantine" x="340" y="489"
width="123" height="40" ruleFlowGroup="unquarantine" />
<join id="11" name="Retry Un-quarantine" x="333" y="372" width="123"
height="40" type="2" />
<ruleSet id="13" name="Sleep Quarantine" x="499" y="372" width="107"
height="48" ruleFlowGroup="sleep_quar" />
<split id="14" name="XOR" x="508" y="488" width="80" height="40"
type="2" >
<constraints>
<constraint toNodeId="13" toType="DROOLS_DEFAULT" name="constraint"
priority="1" type="rule" dialect="mvel" >VirusScanStatus(status !=
"unquarantined", unquarantineCount <= 3 )</constraint>
<constraint toNodeId="17" toType="DROOLS_DEFAULT" name="constraint"
priority="1" type="rule" dialect="mvel" >VirusScanStatus( status ==
"unquarantined" )</constraint>
<constraint toNodeId="15" toType="DROOLS_DEFAULT" name="constraint"
priority="1" type="rule" dialect="mvel" >VirusScanStatus(status !=
"unquarantined", unquarantineCount > 3 )</constraint>
</constraints>
</split>
<ruleSet id="15" name="Post to Compensation Q" x="478" y="563"
width="135" height="40" ruleFlowGroup="quarantine_compensate" />
<end id="17" name="Success" x="631" y="490" width="80" height="40" />
<end id="16" name="End" x="497" y="627" width="80" height="40" />
</nodes>
<connections>
<connection from="1" to="3" />
<connection from="7" to="4" />
<connection from="4" to="5" />
<connection from="5" to="6" />
<connection from="6" to="7" />
<connection from="3" to="7" />
<connection from="5" to="8" />
<connection from="8" to="9" />
<connection from="11" to="10" />
<connection from="5" to="11" />
<connection from="13" to="11" />
<connection from="14" to="13" />
<connection from="10" to="14" />
<connection from="14" to="15" />
<connection from="14" to="17" />
<connection from="15" to="16" />
</connections>
</process>
--
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/How-do-I-persist-at-every-node-transition-tp1727066p1728944.html
Sent from the Drools - User mailing list archive at Nabble.com.
More information about the rules-users
mailing list