[rules-users] Sequential mode help!

Mark Proctor mproctor at codehaus.org
Sat Dec 5 12:14:32 EST 2009


Torfox wrote:
>
> Ross H wrote:
>   
>> You might need to think about how the rules engine does it job. The first
>> part is setting up the network to match your conditions, the second is
>> then
>> executing the consequences of those matched facts.
>>
>> What your seeing here is the first part finding nulls. So you need to make
>> sure that all your facts are fully populated if they are being checked in
>> the conditions, or you need to add conditions that check for null. I think
>> salience does not come into play until after the facts have been matched.
>>
>>     
>
> It seems I have misunderstood the documentation-  the sequential mode
> (https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-expert/html_single/index.html#d0e1809)
> 3.3.7.1:
>
> "Order the Rules by salience and position in the ruleset (by setting a
> sequence attribute on the rule terminal node)."
>   
Sequential mode first evaluates all of the LHS. Which results in a 
single conflict set. It then evaluates the conflict set in salience and 
rule order. Modifying values will not result in the LHS being re-evaluated.

Mark

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20091205/40dd0c9e/attachment.html 


More information about the rules-users mailing list