<html><head><base href="x-msg://221/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Add a rule with a higher salience that starts the rule flow process<div><br></div><div><div>rule "StartProcess"</div><div>salience 100</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>when</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>#conditions</div><div><span class="Apple-tab-span" style="white-space:pre">        </span>then&nbsp;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>#actions</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>kcontext.getKnowledgeRuntime().startProcess("processname");</div><div><span class="Apple-tab-span" style="white-space:pre">                </span></div><div>end</div><div><br></div><div>And add it to your package.</div><div><br></div><div>Activate is for test scenarios that test individual rules that are part of a ruleflow group. For example, you want to test your second rule independent of the rule flow process, then activate RuleFlowGroup2 (and provide a set of facts that cause the rule in RuleFlowGroup2 to execute).</div><div><br></div><div>Jeff</div><div><br></div><div><div>On Mar 30, 2011, at 11:53 AM, John Peterson wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div><font face="Calibri" size="2"><span style="font-size: 11pt; "><div>Hi all,</div><div>&nbsp;</div><div>I had (hopefully) a quick question about trying to test rules in rule flows in Guvnor with Drools 5.1.1.&nbsp; I have a simple 4 step rule flow (Start-RuleGroup1-RuleGroup2-End) with 1 rule in each Rule group.&nbsp; When I set up the test scenario to fire the first rule, which will trigger the second rule, activate “RuleGroup1”, and run the scenario, it doesn’t trigger the RuleFlow and fire the rule.&nbsp; I’ve also tried activating “Start” instead, but neither of them trigger the RuleFlow.</div><div>&nbsp;</div><div>I know from experience that Rule Flows don’t seem to work with 5.0, but with the addition of the entry options, I thought they would with 5.1.1.&nbsp; Am I mistaken?</div><div>&nbsp;</div><div>Also, when I look at the Audit Log, I see the Rule Flow activated and deactivated before any of the facts are asserted:</div><div><font face="Times New Roman">&nbsp;</font></div><table width="469" style="width: 281.9pt; margin-left: 5.4pt; "><col width="469" style="width: 281.9pt; "><tbody><tr><td><table><col width="28" style="width: 17.25pt; "><col width="441" style="width: 264.65pt; "><tbody><tr><td><font face="Times New Roman" color="#444444"><span>&lt;Picture (Device Independent Bitmap) 1.jpg&gt;</span><font face="Tahoma" size="3"><span style="font-size: 12pt; "></span></font></font></td><td><font face="Tahoma" size="2" color="#444444"><span style="font-size: 9pt; ">BEFORE RULEFLOW GROUP ACTIVATED group:Start[size=0]</span></font></td></tr><tr><td><font face="Times New Roman" color="#444444"><span>&lt;Picture (Device Independent Bitmap) 2.jpg&gt;</span><font face="Tahoma" size="3"><span style="font-size: 12pt; "></span></font></font></td><td><font face="Tahoma" size="2" color="#444444"><span style="font-size: 9pt; ">AFTER RULEFLOW GROUP ACTIVATED group:Start[size=0]</span></font></td></tr><tr><td><font face="Times New Roman" color="#444444"><span>&lt;Picture (Device Independent Bitmap) 3.jpg&gt;</span><font face="Tahoma" size="3"><span style="font-size: 12pt; "></span></font></font></td><td><font face="Tahoma" size="2" color="#444444"><span style="font-size: 9pt; ">BEFORE RULEFLOW GROUP DEACTIVATED group:Start[size=0]</span></font></td></tr><tr><td><font face="Times New Roman" color="#444444"><span>&lt;Picture (Device Independent Bitmap) 4.jpg&gt;</span><font face="Tahoma" size="3"><span style="font-size: 12pt; "></span></font></font></td><td><font face="Tahoma" size="2" color="#444444"><span style="font-size: 9pt; ">AFTER RULEFLOW GROUP DEACTIVATED group:Start[size=0]</span></font></td></tr><tr><td><font face="Times New Roman" color="#444444"><span>&lt;Picture (Device Independent Bitmap) 5.jpg&gt;</span><font face="Tahoma" size="3"><span style="font-size: 12pt; "></span></font></font></td><td><font face="Tahoma" size="2" color="#444444"><span style="font-size: 9pt; ">OBJECT ASSERTED value:com.test.Game@47244724 factId: 1</span></font></td></tr><tr><td><font face="Times New Roman" color="#444444"><span>&lt;Picture (Device Independent Bitmap) 6.jpg&gt;</span><font face="Tahoma" size="3"><span style="font-size: 12pt; "></span></font></font></td><td><font face="Tahoma" size="2" color="#444444"><span style="font-size: 9pt; ">OBJECT ASSERTED value:com.test.Customer@4c584c58 factId: 2</span></font></td></tr></tbody></table><div><font face="Times New Roman" color="#444444">&nbsp;</font></div></td></tr><tr><td><font face="Times New Roman" color="#444444"></font></td></tr></tbody></table><div><font face="Times New Roman">&nbsp;</font></div><div>Could this be part of the problem?</div><div>&nbsp;</div><div>Thanks!</div><div><font face="Times New Roman">&nbsp;</font></div></span></font>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br></div></blockquote></div><br></div></body></html>