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.legen...@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@lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to