[rules-users] How to know which condition passed from list of conditions

Mark Proctor mproctor at codehaus.org
Wed Nov 20 16:18:48 EST 2013


create additional rules, with just the patterns you know you want to match and record the result in the consequence - so you can check/assert later.

Mark
On 20 Nov 2013, at 20:49, swaroop <swaroop.oggu at gmail.com> wrote:

> Hi ,
> 
> Is there any way to determine which conditions matched/passed from list of
> conditions defined for a rule . Also it would be helpful to know if there is
> any means to relate a fact and the rule fired. In the below mentioned rule
> can we know which condition passed ?
> 
> Eg;
> rule "check which Object matched"
> when
> Any of following conditions are true
> Condition1 
> Condition2
> Condition3
> then
> insert(Obj A)
> 
> 
> Regards
> Oggu
> 
> 
> 
> --
> View this message in context: http://drools.46999.n3.nabble.com/How-to-know-which-condition-passed-from-list-of-conditions-tp4026853.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




More information about the rules-users mailing list