[rules-users] Data comparing in CONDITION column decision table

Vincent Legendre vincent.legendre at eurodecision.com
Thu Mar 22 05:40:24 EDT 2012


Thanks for the warning, some old bugs appears clearer now !!!

Is it planned in a near future to only exclude the constraint and not 
the whole fact pattern ?
To me, it seems more accurate to do this way.

Le 19/03/2012 22:57, Michael Anstis a écrit :
> This is true, but be aware that if a cell value in the Template data 
> is empty the whole Fact Pattern is omitted.
>
> For example:-
>
> rule "Discount @{row.rowNumber}"
>   when
>     Account( $v : @{field} != null )
>     $c : Customer( @{field} == $v , accno == @{accno} )
>   then
>     $c.setDiscount(1);
> end
>
> If "field" is empty neither "Account" or "Customer" will be included 
> in the generated DRL.
>
> If "accno" is empty "Customer" will not be included in the generated DRL.
>
> This may have an impact on what you want to achieve.
>
> With kind regards,
>
> Mike

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


More information about the rules-users mailing list