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

Michael Anstis michael.anstis at gmail.com
Thu Mar 22 09:48:40 EDT 2012


To be honest there are no plans.

Templates are implemented internally as MVEL templates and hence String
manipulation.

At this level concepts of "Pattern" and "Constraint" have no meaning and
hence it is next to impossible to determine what impact a missing parameter
value has.

On 22 March 2012 09:40, Vincent Legendre
<vincent.legendre at eurodecision.com>wrote:

>  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
>
>
>
> _______________________________________________
> 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/20120322/bd28b4c7/attachment.html 


More information about the rules-users mailing list