[rules-users] Capturing condition/constraint evaluation results

Wolfgang Laun wolfgang.laun at gmail.com
Mon Jan 28 15:03:58 EST 2013


You've got to realize that evaluation proceeds according to the patterns on
a rule's LHS. Clearly, if a rule fires, all of your conditions are true. I
assume that this isn't the only answer you expect. - Let's look at a simple
example in DRL:

   One( a == x )
   Two( b == y )
   Three( c == z )

If this rule doesn't fire, two out of these three conditions may be true,
or each of them, singularly. If you need to know which pairs and which
singletons, you'll have to write individual rules for One, Two, Three and
all pairs, i.e., One+Two, One+Three, Two+Three - not very attractive.

You might get more information about the state of your facts by writing the
singleton rules, do an insertLogical of an auxiliary fact representing the
truth of its LHS, and proceed from there. (...)

I can't recall any requirement quite like yours; usually it's the negative
form, when people want to know which constraint causes a rule *not *to
fire.

A more detailed description of your actual requirements might help, but
decision tables may not be the right vehicle for your kind of problem.

-W



On 26 January 2013 05:52, katvik <katvik at hotmail.com> wrote:

> Hi,
>
> We are using decision table in our application and I need to capture the
> results of the evaluation of every condition of a rule. Is it possible?
>
> Thank you.
>
>
>
> --
> View this message in context:
> http://drools.46999.n3.nabble.com/Capturing-condition-constraint-evaluation-results-tp4021831.html
> Sent from the Drools: User forum mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20130128/bed556b4/attachment.html 


More information about the rules-users mailing list