<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">Chris,<DIV><BR class="khtml-block-placeholder"></DIV><DIV> No the issue was that updating the $list so it should make the constraint of rule "test update A" not fire again, when updating the $fact</DIV><DIV>the rule is added to the agenda (activation-list) anyway...</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I haven proved yet (I hope to do so today), but Edson said it is fixed on trunk.</DIV><DIV><BR><DIV><DIV>On 05-07-2007, at 7:50, Chris Woodrow wrote:</DIV><BR class="Apple-interchange-newline"><BLOCKQUOTE type="cite">Hi,<BR>This doesn't seem to be a bug, IMHO, since no-loop is supposed (according to the doc). In this case, factA is called once (thanks to "no-loop", than fact2 is called once, and so on. Do you mean no-loop should still be on if it has been used once for a given rule? <BR><BR>Chris<BR><BR><DIV><SPAN class="gmail_quote">2007/7/3, Felipe Piccolini <<A href="mailto:felipe.piccolini@bluesoft.cl">felipe.piccolini@bluesoft.cl</A>>:</SPAN><BLOCKQUOTE class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"> <DIV style=""><DIV style="margin: 0px;">I know I already asked this in a previous email, but no answer and diferent subject... so I'll ask again </DIV><DIV style="margin: 0px;"><BR></DIV><DIV style="margin: 0px;">I have an issue using update in 2 rules that update the same object... a loop is created even when I try to </DIV><DIV style="margin: 0px;">avoid the loop adding an extra condition to each rule... Im inserting an ArrayList as a fact too, so I can check</DIV><DIV style="margin: 0px;">the extra condition...</DIV><DIV style="margin: 0px;"> <BR></DIV><DIV style="margin: 0px;">Can anyone tell me how to fix this?</DIV><DIV style="margin: 0px;"><BR></DIV><DIV style="margin: 0px;">Consider this:</DIV><DIV style="margin: 0px;">//-------RULES----------------------------- </DIV><DIV style="margin: 0px;"><FONT color="#821313" face="Monaco" size="3"><SPAN style="font-size: 11px;">package</SPAN></FONT><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;"> cl.bluesoft.test</SPAN></FONT></DIV> <DIV style="margin: 0px; min-height: 15px;"><BR></DIV><DIV style="margin: 0px;"><FONT color="#817e21" face="Monaco" size="3"><SPAN style="font-size: 11px;">#list any import classes here.</SPAN></FONT></DIV><DIV style="margin: 0px;"> <FONT color="#821313" face="Monaco" size="3"><SPAN style="font-size: 11px;">import</SPAN></FONT><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;"> java.util.List</SPAN></FONT></DIV><DIV style="margin: 0px;"><FONT color="#821313" face="Monaco" size="3"> <SPAN style="font-size: 11px;">import</SPAN></FONT><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;"> java.util.ArrayList</SPAN></FONT></DIV><DIV style="margin: 0px; min-height: 15px;"><BR></DIV><DIV style="margin: 0px;"> <FONT color="#821313" face="Monaco" size="3"><SPAN style="font-size: 11px;">import</SPAN></FONT><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;"> cl.bluesoft.test.rules.Fact</SPAN></FONT></DIV><DIV style="margin: 0px; min-height: 15px;"> <BR></DIV><DIV style="margin: 0px;"><FONT color="#817e21" face="Monaco" size="3"><SPAN style="font-size: 11px;">#declare any global variables here</SPAN></FONT></DIV><DIV style="margin: 0px; min-height: 15px;"><BR></DIV><DIV style="margin: 0px;"> <FONT color="#821313" face="Monaco" size="3"><SPAN style="font-size: 11px;">rule</SPAN></FONT><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;"> </SPAN></FONT><FONT color="#3a7c1c" face="Monaco" size="3"><SPAN style="font-size: 11px;"> "test update A"</SPAN></FONT></DIV><DIV style="margin: 0px;"><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;"> </SPAN></FONT><FONT color="#821313" face="Monaco" size="3"><SPAN style="font-size: 11px;"> salience</SPAN></FONT><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;"> 699</SPAN></FONT></DIV><DIV style="margin: 0px;"><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;"> </SPAN></FONT><FONT color="#821313" face="Monaco" size="3"> <SPAN style="font-size: 11px;">no-loop</SPAN></FONT><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;"> </SPAN></FONT></DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN><FONT color="#821313" face="Monaco" size="3"> <SPAN style="font-size: 11px;">when</SPAN></FONT></DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN><SPAN style="white-space: pre;">        </SPAN><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;"> $f : Fact($n: number > 0)</SPAN></FONT></DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN><SPAN style="white-space: pre;">        </SPAN><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;">$list: ArrayList( this </SPAN></FONT><FONT color="#821313" face="Monaco" size="3"><SPAN style="font-size: 11px;">excludes</SPAN></FONT><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;"> </SPAN></FONT><FONT color="#3a7c1c" face="Monaco" size="3"> <SPAN style="font-size: 11px;">"key1"</SPAN></FONT><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;">)</SPAN></FONT></DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN><FONT color="#821313" face="Monaco" size="3"> <SPAN style="font-size: 11px;">then</SPAN></FONT></DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN><SPAN style="white-space: pre;">        </SPAN><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;"> System.out.println(</SPAN></FONT><FONT color="#3a7c1c" face="Monaco" size="3"><SPAN style="font-size: 11px;">"A-fact number1:"</SPAN></FONT><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;">+$f.getNumber()+ </SPAN></FONT><FONT color="#3a7c1c" face="Monaco" size="3"><SPAN style="font-size: 11px;">" list 1:"</SPAN></FONT><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;">+$list);</SPAN></FONT></DIV><DIV style="margin: 0px;"> <SPAN style="white-space: pre;">        </SPAN><SPAN style="white-space: pre;">        </SPAN><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;">$list.add(</SPAN></FONT><FONT color="#3a7c1c" face="Monaco" size="3"><SPAN style="font-size: 11px;"> "key1"</SPAN></FONT><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;">);</SPAN></FONT></DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN><SPAN style="white-space: pre;">        </SPAN><FONT face="Monaco" size="3"> <SPAN style="font-size: 11px;">$f.setNumber($n + 1);</SPAN></FONT></DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN><SPAN style="white-space: pre;">        </SPAN><FONT color="#821313" face="Monaco" size="3"> <SPAN style="font-size: 11px;">update</SPAN></FONT><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;"> ($f);</SPAN></FONT></DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN><SPAN style="white-space: pre;">         </SPAN><FONT color="#821313" face="Monaco" size="3"><SPAN style="font-size: 11px;">update</SPAN></FONT><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;"> ($list);</SPAN></FONT></DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">         </SPAN><SPAN style="white-space: pre;">        </SPAN><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;">System.out.println(</SPAN></FONT><FONT color="#3a7c1c" face="Monaco" size="3"><SPAN style="font-size: 11px;">"A-fact number2:" </SPAN></FONT><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;">+$f.getNumber()+</SPAN></FONT><FONT color="#3a7c1c" face="Monaco" size="3"><SPAN style="font-size: 11px;">" list 2:"</SPAN></FONT><FONT face="Monaco" size="3"> <SPAN style="font-size: 11px;">+$list);</SPAN></FONT></DIV><DIV style="margin: 0px;"><FONT color="#821313" face="Monaco" size="3"><SPAN style="font-size: 11px;">end</SPAN></FONT></DIV><DIV style="margin: 0px; min-height: 15px;"> <BR></DIV><DIV style="margin: 0px; min-height: 15px;"><BR></DIV><DIV style="margin: 0px;"><FONT color="#821313" face="Monaco" size="3"><SPAN style="font-size: 11px;">rule</SPAN></FONT><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;"> </SPAN></FONT><FONT color="#3a7c1c" face="Monaco" size="3"><SPAN style="font-size: 11px;">"test update B"</SPAN></FONT></DIV><DIV style="margin: 0px;"><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;"> </SPAN></FONT><FONT color="#821313" face="Monaco" size="3"><SPAN style="font-size: 11px;">salience</SPAN></FONT><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;"> 699</SPAN></FONT></DIV><DIV style="margin: 0px;"> <FONT face="Monaco" size="3"><SPAN style="font-size: 11px;"> </SPAN></FONT><FONT color="#821313" face="Monaco" size="3"><SPAN style="font-size: 11px;">no-loop</SPAN></FONT><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;"> </SPAN></FONT></DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN><FONT color="#821313" face="Monaco" size="3"><SPAN style="font-size: 11px;">when</SPAN></FONT></DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">         </SPAN><SPAN style="white-space: pre;">        </SPAN><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;">$f : Fact($n: number > 1)</SPAN></FONT></DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN> <SPAN style="white-space: pre;">        </SPAN><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;">$list: ArrayList( this </SPAN></FONT><FONT color="#821313" face="Monaco" size="3"><SPAN style="font-size: 11px;">excludes </SPAN></FONT><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;"> </SPAN></FONT><FONT color="#3a7c1c" face="Monaco" size="3"><SPAN style="font-size: 11px;">"key2"</SPAN></FONT><FONT face="Monaco" size="3"> <SPAN style="font-size: 11px;">)</SPAN></FONT></DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN><FONT color="#821313" face="Monaco" size="3"><SPAN style="font-size: 11px;">then</SPAN></FONT></DIV><DIV style="margin: 0px;"> <SPAN style="white-space: pre;">        </SPAN><SPAN style="white-space: pre;">        </SPAN><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;">System.out.println(</SPAN></FONT><FONT color="#3a7c1c" face="Monaco" size="3"><SPAN style="font-size: 11px;"> "B-fact number1:"</SPAN></FONT><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;">+$f.getNumber()+</SPAN></FONT><FONT color="#3a7c1c" face="Monaco" size="3"><SPAN style="font-size: 11px;">" list 1:" </SPAN></FONT><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;">+$list);</SPAN></FONT></DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN><SPAN style="white-space: pre;">        </SPAN><FONT face="Monaco" size="3"> <SPAN style="font-size: 11px;">$list.add(</SPAN></FONT><FONT color="#3a7c1c" face="Monaco" size="3"><SPAN style="font-size: 11px;">"key2"</SPAN></FONT><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;"> );</SPAN></FONT></DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN><SPAN style="white-space: pre;">        </SPAN><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;">$f.setNumber($n + 1);</SPAN></FONT> </DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN><SPAN style="white-space: pre;">        </SPAN><FONT color="#821313" face="Monaco" size="3"><SPAN style="font-size: 11px;">update</SPAN></FONT><FONT face="Monaco" size="3"> <SPAN style="font-size: 11px;"> ($f);</SPAN></FONT></DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN><SPAN style="white-space: pre;">        </SPAN><FONT color="#821313" face="Monaco" size="3"><SPAN style="font-size: 11px;"> update</SPAN></FONT><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;"> ($list);</SPAN></FONT></DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN><SPAN style="white-space: pre;">        </SPAN><FONT face="Monaco" size="3"> <SPAN style="font-size: 11px;">System.out.println(</SPAN></FONT><FONT color="#3a7c1c" face="Monaco" size="3"><SPAN style="font-size: 11px;">"B-fact number2:"</SPAN></FONT><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;"> +$f.getNumber()+</SPAN></FONT><FONT color="#3a7c1c" face="Monaco" size="3"><SPAN style="font-size: 11px;">" list 2:"</SPAN></FONT><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;">+$list);</SPAN></FONT> </DIV><DIV style="margin: 0px;"><FONT color="#821313" face="Monaco" size="3"><SPAN style="font-size: 11px;">end</SPAN></FONT></DIV><DIV style="margin: 0px; min-height: 15px;"><FONT color="#821313"><BR></FONT></DIV><DIV style="margin: 0px;"> //-------FACT-----------------------------</DIV><DIV style="margin: 0px;">public class Fact implements Serializable {</DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN>private static final long serialVersionUID = 331627137981862975L; </DIV><DIV style="margin: 0px; min-height: 14px;"><SPAN style="white-space: pre;">        </SPAN><BR></DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN>private int number;</DIV><DIV style="margin: 0px; min-height: 14px;"> <SPAN style="white-space: pre;">        </SPAN><BR></DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN>public Fact(int number){</DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN><SPAN style="white-space: pre;">         </SPAN>this.number<SPAN style="white-space: pre;">        </SPAN>= number;</DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN>}</DIV><DIV style="margin: 0px; min-height: 14px;"><SPAN style="white-space: pre;">         </SPAN><BR></DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN>public Fact(){</DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN><SPAN style="white-space: pre;">        </SPAN>this(0);</DIV> <DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN>}</DIV><DIV style="margin: 0px; min-height: 14px;"><BR></DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN>/**</DIV><DIV style="margin: 0px;"> <SPAN style="white-space: pre;">        </SPAN> * @return the number</DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN> */</DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN>public int getNumber() { </DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN><SPAN style="white-space: pre;">        </SPAN>return number;</DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN>}</DIV><DIV style="margin: 0px; min-height: 14px;"> <BR></DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN>/**</DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN> * @param number the number to set</DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">         </SPAN> */</DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN>public void setNumber(int number) {</DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN><SPAN style="white-space: pre;">         </SPAN>this.number = number;</DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN>}</DIV><DIV style="margin: 0px; min-height: 14px;"><SPAN style="white-space: pre;">        </SPAN><BR></DIV><DIV style="margin: 0px;"> }</DIV><DIV style="margin: 0px; min-height: 15px;"><FONT color="#821313"><BR></FONT></DIV><DIV style="margin: 0px;">//------TEST---------</DIV><DIV style="margin: 0px;">public class TestUpdateFact implements Serializable { </DIV><DIV style="margin: 0px; min-height: 14px;"><BR></DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN>private static final long serialVersionUID = -574789596641083743L;</DIV><DIV style="margin: 0px; min-height: 14px;"> <BR></DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN>/**</DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN> * @param args</DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">         </SPAN> */</DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN>public static void main(String[] args) {</DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN><SPAN style="white-space: pre;">         </SPAN><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;">RuleBase ruleBase = RuleBaseFactory.newRuleBase();</SPAN></FONT></DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN><SPAN style="white-space: pre;">         </SPAN><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;">Package pkg = builder.getPackage();</SPAN></FONT></DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN><SPAN style="white-space: pre;">         </SPAN><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;">.... </SPAN></FONT></DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN><SPAN style="white-space: pre;">        </SPAN>WorkingMemory session = ruleBase.getStatefulSession();</DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN><SPAN style="white-space: pre;">        </SPAN>...etc etc...</DIV><DIV style="margin: 0px; min-height: 14px;"><BR></DIV><DIV style="margin: 0px;"> <SPAN style="white-space: pre;">        </SPAN><SPAN style="white-space: pre;">        </SPAN>List list = new ArrayList();</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><SPAN style="white-space: pre;">        </SPAN><SPAN style="white-space: pre;">         </SPAN><BR></DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">        </SPAN><SPAN style="white-space: pre;">        </SPAN>Fact fact1 = new Fact(1);</DIV><DIV style="margin: 0px; min-height: 14px;"><BR></DIV><DIV style="margin: 0px;"> <SPAN style="white-space: pre;">        </SPAN><SPAN style="white-space: pre;">        </SPAN>session.fireAllRules();</DIV><DIV style="margin: 0px; min-height: 14px;"><BR></DIV><DIV style="margin: 0px;"><SPAN style="white-space: pre;">         </SPAN><SPAN style="white-space: pre;">        </SPAN>....etc, etc...</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; min-height: 14px; "><SPAN style="white-space: pre;">        </SPAN><SPAN style="white-space: pre;">        </SPAN><BR></DIV><DIV style="margin: 0px;"> <SPAN style="white-space: pre;">        </SPAN>}</DIV><DIV style="margin: 0px; min-height: 14px;"><BR></DIV><DIV style="margin: 0px;">}</DIV><DIV style="margin: 0px; min-height: 14px;"><BR></DIV><DIV style="margin: 0px;">//--------OUTPUT------------ </DIV><DIV style="margin: 0px;"><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;">A-fact number1:1 list 1:[]</SPAN></FONT></DIV><DIV style="margin: 0px;"><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;"> A-fact number2:2 list 2:[key1]</SPAN></FONT></DIV><DIV style="margin: 0px;"><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;">B-fact number1:2 list 1:[key1]</SPAN></FONT></DIV><DIV style="margin: 0px;"><FONT face="Monaco" size="3"> <SPAN style="font-size: 11px;">B-fact number2:3 list 2:[key1, key2]</SPAN></FONT></DIV><DIV style="margin: 0px;"><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;">A-fact number1:3 list 1:[key1, key2]</SPAN></FONT> </DIV><DIV style="margin: 0px;"><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;">A-fact number2:4 list 2:[key1, key2, key1]</SPAN></FONT></DIV><DIV style="margin: 0px;"><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;"> B-fact number1:4 list 1:[key1, key2, key1]</SPAN></FONT></DIV><DIV style="margin: 0px;"><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;">B-fact number2:5 list 2:[key1, key2, key1, key2]</SPAN></FONT></DIV><DIV style="margin: 0px;"> <FONT face="Monaco" size="3"><SPAN style="font-size: 11px;">A-fact number1:5 list 1:[key1, key2, key1, key2]</SPAN></FONT></DIV><DIV style="margin: 0px;"><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;">A-fact number2:6 list 2:[key1, key2, key1, key2, key1] </SPAN></FONT></DIV><DIV style="margin: 0px;"><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;">B-fact number1:6 list 1:[key1, key2, key1, key2, key1]</SPAN></FONT></DIV><DIV style="margin: 0px;"><FONT face="Monaco" size="3"> <SPAN style="font-size: 11px;">B-fact number2:7 list 2:[key1, key2, key1, key2, key1, key2]</SPAN></FONT></DIV><DIV style="margin: 0px;"><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;">A-fact number1:7 list 1:[key1, key2, key1, key2, key1, key2] </SPAN></FONT></DIV><DIV style="margin: 0px;"><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;">A-fact number2:8 list 2:[key1, key2, key1, key2, key1, key2, key1]</SPAN></FONT></DIV><DIV style="margin: 0px;"><FONT face="Monaco" size="3"> <SPAN style="font-size: 11px;">B-fact number1:8 list 1:[key1, key2, key1, key2, key1, key2, key1]</SPAN></FONT></DIV><DIV style="margin: 0px; min-height: 15px;"><BR></DIV><DIV style="margin: 0px;"><FONT face="Monaco" size="3"> <SPAN style="font-size: 11px;">.... for ever.....</SPAN></FONT></DIV><DIV style="margin: 0px; min-height: 15px;"><BR></DIV><DIV style="margin: 0px;"><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;">So I have a loop... only when I use update and both rules... condition about the </SPAN></FONT></DIV><DIV style="margin: 0px;"><FONT face="Monaco" size="3"><SPAN style="font-size: 11px;">list not containing "key1" and "key2" seems not properly chequed... I dont know...</SPAN></FONT> </DIV><DIV style="margin: 0px; min-height: 14px;"><BR></DIV><DIV style="margin: 0px;">Can somebody help me? Am I missing something here?</DIV><DIV style="margin: 0px; min-height: 14px;"><BR></DIV><DIV style="margin: 0px;"> Thanks.</DIV><BR><DIV> <SPAN style="border-collapse: separate; border-spacing: 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px;"> <DIV><SPAN style="text-decoration: underline;"><SPAN> </SPAN></SPAN><DIV><FONT size="3"><SPAN style="font-size: 13px;"><B style="font-size: 13px; font-weight: bold;"> <SPAN style="font-size: 13px; font-weight: bold;">Felipe Piccolini M.</SPAN></B></SPAN></FONT></DIV><DIV><A href="mailto:felipe.piccolini@bluesoft.cl" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)"> <SPAN style="color: rgb(0, 0, 238);">felipe.piccolini@bluesoft.cl</SPAN></A></DIV><BR></DIV><DIV><BR></DIV><BR></SPAN> </DIV><BR></DIV><BR>_______________________________________________<BR>rules-users mailing list<BR><A onclick="return top.js.OpenExtLink(window,event,this)" href="mailto:rules-users@lists.jboss.org"> rules-users@lists.jboss.org</A><BR><A onclick="return top.js.OpenExtLink(window,event,this)" href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users </A><BR><BR></BLOCKQUOTE></DIV><BR><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">_______________________________________________</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; ">rules-users mailing list</DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</A></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><A href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</A></DIV> </BLOCKQUOTE></DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><BR class="Apple-interchange-newline"><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Arial" size="4"><SPAN class="Apple-style-span" style="font-size: 13.3px;; font-family: Arial; "><BR class="khtml-block-placeholder"></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Arial" size="4"><SPAN class="Apple-style-span" style="font-size: 13.3px;; font-family: Arial; "><SPAN class="Apple-style-span" style="font-family: Arial; font-size: 13.3px; "><SPAN class="Apple-style-span" style="font-family: Arial; font-size: 13.3px; "><SPAN class="Apple-style-span" style="font-family: Arial; font-size: 13.3px; "><SPAN class="Apple-style-span" style="font-family: Arial; font-size: 13.3px; ">Atentamente,</SPAN></SPAN></SPAN></SPAN></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Arial" size="4"><SPAN class="Apple-style-span" style="font-size: 13.3px;; font-family: Arial; "><SPAN class="Apple-style-span" style="font-family: Arial; font-size: 13.3px; "><SPAN class="Apple-style-span" style="font-family: Arial; font-size: 13.3px; "><SPAN class="Apple-style-span" style="font-family: Arial; font-size: 13.3px; "><SPAN class="Apple-style-span" style="font-family: Arial; font-size: 13.3px; ">______________________</SPAN></SPAN></SPAN></SPAN></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times New Roman" size="4"><SPAN class="Apple-style-span" style="font-size: 16px;; font-family: Times New Roman; "><B style="font-family: Times New Roman; font-size: 16px; font-weight: bold; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; font-weight: bold; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; font-weight: bold; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; font-weight: bold; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; font-weight: bold; ">Felipe Piccolini Marfull</SPAN></SPAN></SPAN></SPAN></B></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times New Roman" size="4"><SPAN class="Apple-style-span" style="font-size: 16px;; font-family: Times New Roman; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; ">Jefe de Proyectos</SPAN></SPAN></SPAN></SPAN></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times New Roman" size="4"><SPAN class="Apple-style-span" style="font-size: 16px;; font-family: Times New Roman; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; ">Agustina 1141 Piso 8-B</SPAN></SPAN></SPAN></SPAN></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times New Roman" size="4"><SPAN class="Apple-style-span" style="font-size: 16px;; font-family: Times New Roman; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; ">Santiago</SPAN></SPAN></SPAN></SPAN></SPAN></FONT></DIV><P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT class="Apple-style-span" face="Times New Roman" size="4"><SPAN class="Apple-style-span" style="font-size: 16px;; font-family: Times New Roman; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; "> </SPAN></SPAN></SPAN></SPAN></SPAN></FONT></P><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times New Roman" size="4"><SPAN class="Apple-style-span" style="font-size: 16px;; font-family: Times New Roman; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; ">Fono +(56 2) 6883083</SPAN></SPAN></SPAN><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; ">7</SPAN></SPAN></SPAN></SPAN></SPAN></FONT></DIV><DIV style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; "><FONT class="Apple-style-span" face="Times New Roman" size="4"><SPAN class="Apple-style-span" style="font-size: 16px;; font-family: Times New Roman; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; "><SPAN class="Apple-style-span" style="font-family: Times New Roman; font-size: 16px; ">E-mail </SPAN></SPAN></SPAN><FONT class="Apple-style-span" color="#0022F2"><SPAN class="Apple-style-span" style="text-decoration: underline;; color: rgb(0, 34, 242); font-family: Times New Roman; font-size: 16px; -khtml-text-decorations-in-effect: underline; "><SPAN class="Apple-style-span" style="color: rgb(0, 34, 242); font-family: Times New Roman; font-size: 16px; -khtml-text-decorations-in-effect: underline; "><SPAN class="Apple-style-span" style="color: rgb(0, 34, 242); font-family: Times New Roman; font-size: 16px; -khtml-text-decorations-in-effect: underline; "><SPAN class="Apple-style-span" style="color: rgb(0, 34, 242); font-family: Times New Roman; font-size: 16px; -khtml-text-decorations-in-effect: underline; ">felipe.piccolini</SPAN></SPAN></SPAN></SPAN></FONT></SPAN></SPAN></FONT><A href="mailto:richard.calderon@bluesoft.cl"><FONT class="Apple-style-span" face="Times New Roman" size="4"><SPAN class="Apple-style-span" style="font-size: 16px;; color: rgb(0, 0, 238); font-family: Times New Roman; -khtml-text-decorations-in-effect: underline; "><FONT class="Apple-style-span" color="#0022F2"><SPAN class="Apple-style-span" style="color: rgb(0, 34, 242); font-family: Times New Roman; font-size: 16px; -khtml-text-decorations-in-effect: underline; "><SPAN class="Apple-style-span" style="color: rgb(0, 34, 242); font-family: Times New Roman; font-size: 16px; -khtml-text-decorations-in-effect: underline; "><SPAN class="Apple-style-span" style="color: rgb(0, 34, 242); font-family: Times New Roman; font-size: 16px; -khtml-text-decorations-in-effect: underline; "><SPAN class="Apple-style-span" style="color: rgb(0, 34, 242); font-family: Times New Roman; font-size: 16px; -khtml-text-decorations-in-effect: underline; ">@bluesoft.cl</SPAN></SPAN></SPAN></SPAN></FONT></SPAN></FONT></A></DIV><P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT class="Apple-style-span" face="Times New Roman" size="4"><SPAN class="Apple-style-span" style="font-size: 16px;; font-family: Times New Roman; "><BR class="khtml-block-placeholder"></SPAN></FONT></P><BR class="Apple-interchange-newline"></SPAN><SPAN><IMG src="cid:C7BC1E79-081E-4FF6-ACBF-A13DA26844DF@local"></SPAN><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><P style="margin: 0.0px 0.0px 0.0px 0.0px"><FONT class="Apple-style-span" face="Times New Roman" size="4"><BR class="Apple-interchange-newline"><SPAN class="Apple-style-span" style="font-size: 16px;; font-family: Times New Roman; "></SPAN></FONT></P></SPAN></SPAN></SPAN></SPAN><BR class="Apple-interchange-newline"></SPAN> </SPAN></SPAN></SPAN></SPAN></DIV><BR></DIV></BODY></HTML>