<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
<div class="moz-cite-prefix">Op 07-12-12 08:29, Michiel Vermandel
schreef:<br>
</div>
<blockquote
cite="mid:1354865387.57609.YahooMailNeo@web161302.mail.bf1.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff; font-family:tahoma,
new york, times, serif;font-size:10pt">Hi,<br>
<br>
I would like to read some documentation on how the rules engine
(specifically for planner) works.<br>
I have a number of unanswered questions.<br>
<br>
Some type of questions:<br>
<br>
- If I have two rules in my drl file, will the engine execute
first the first rule with all possible combinations of the
planning entities matching the conditions of the rule<br>
and then the second rule with all possible combinations of
the planning entities matching the conditions of the rule<br>
</div>
</blockquote>
the order depends on the rule agenda, see drools expert manual<br>
<a class="moz-txt-link-freetext" href="http://docs.jboss.org/drools/release/5.5.0.Final/drools-expert-docs/html_single/index.html">http://docs.jboss.org/drools/release/5.5.0.Final/drools-expert-docs/html_single/index.html</a><br>
<blockquote
cite="mid:1354865387.57609.YahooMailNeo@web161302.mail.bf1.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff; font-family:tahoma,
new york, times, serif;font-size:10pt"><span>- Can I trace which
rules are executed with what planning-variables and in which
order</span><br>
</div>
</blockquote>
You can put System.out.println() in the RHS.<br>
Drools expert does not support TRACE logging to support this for you
currently.<br>
If you would like this, vote for this issue:<br>
<a class="moz-txt-link-freetext" href="https://issues.jboss.org/browse/JBRULES-3702">https://issues.jboss.org/browse/JBRULES-3702</a><br>
<br>
<blockquote
cite="mid:1354865387.57609.YahooMailNeo@web161302.mail.bf1.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff; font-family:tahoma,
new york, times, serif;font-size:10pt">
<div><span>- What is the purpose of the last variable amount of
parameters ($x, $y, $z) in the RHS logic insertLogical(new
IntConstraintOccurrence( ... , $x, $y ,$z))</span></div>
</div>
</blockquote>
Those "causes" is to keep Drools Expert's insertLogical's behaviour
happy because an <span>IntConstraintOccurrence's equals/hashcode is
called so only 1 can be in the working memory.<br>
Basically, they explain what caused that part of the score. It's
interesting if you want to use them to explain why a solution has
a certain score.<br>
But, on the other hand, it's a PITA and I am working on an
alternative that's easier to use and faster, once drools expert
supports ChangeMatchListeners.<br>
<br>
In any case, it's a valid issue that the docs don't explain this
causes thing.<br>
</span>
<blockquote
cite="mid:1354865387.57609.YahooMailNeo@web161302.mail.bf1.yahoo.com"
type="cite">
<div style="color:#000; background-color:#fff; font-family:tahoma,
new york, times, serif;font-size:10pt">
<div style="color: rgb(0, 0, 0); font-size: 13.3333px;
font-family: tahoma,new york,times,serif; background-color:
transparent; font-style: normal;"><br>
<span></span></div>
<div style="color: rgb(0, 0, 0); font-size: 13.3333px;
font-family: tahoma,new york,times,serif; background-color:
transparent; font-style: normal;"><span>I know there is
<a class="moz-txt-link-freetext" href="http://docs.jboss.org/drools/release/5.5.0.Final/drools-planner-docs/html_single/index.html">http://docs.jboss.org/drools/release/5.5.0.Final/drools-planner-docs/html_single/index.html</a>
but it does not really answer the above questions.<br>
</span></div>
<div style="color: rgb(0, 0, 0); font-size: 13.3333px;
font-family: tahoma,new york,times,serif; background-color:
transparent; font-style: normal;"><br>
<span></span></div>
<div style="color: rgb(0, 0, 0); font-size: 13.3333px;
font-family: tahoma,new york,times,serif; background-color:
transparent; font-style: normal;"><span>Thanks,</span></div>
<div style="color: rgb(0, 0, 0); font-size: 13.3333px;
font-family: tahoma,new york,times,serif; background-color:
transparent; font-style: normal;"><br>
<span></span></div>
<div style="color: rgb(0, 0, 0); font-size: 13.3333px;
font-family: tahoma,new york,times,serif; background-color:
transparent; font-style: normal;"><span>Michiel<br>
</span></div>
<div> </div>
<div>-----------------<br>
<a class="moz-txt-link-freetext" href="http://www.codessentials.com">http://www.codessentials.com</a> - Your essential software, for
free!<br>
Follow us at <a class="moz-txt-link-freetext" href="http://twitter.com/#!/Codessentials">http://twitter.com/#!/Codessentials</a></div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
</blockquote>
<br>
</body>
</html>