<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Thanks for the warning, some old bugs appears clearer now !!!<br>
<br>
Is it planned in a near future to only exclude the constraint and
not the whole fact pattern ?<br>
To me, it seems more accurate to do this way.<br>
<br>
Le 19/03/2012 22:57, Michael Anstis a écrit :
<blockquote
cite="mid:CAAG9P0v7mUbkEKsDJXzVt8vXozJ7UttfcV6Ob7X4Jrq=dmT_gg@mail.gmail.com"
type="cite">This is true, but be aware that if a cell value in the
Template data is empty the whole Fact Pattern is omitted.<br>
<br>
For example:-<br>
<br>
<span style="font-family:courier new,monospace">rule "Discount
@{row.rowNumber}"</span><br style="font-family:courier
new,monospace">
<span style="font-family:courier new,monospace"> when</span><br
style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> Account( $v :
@{field} != null )</span><br style="font-family:courier
new,monospace">
<span style="font-family:courier new,monospace"> $c : Customer(
@{field} == $v , accno == @{accno} )</span><br
style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace"> then</span><br
style="font-family:courier new,monospace">
<span style="font-family:courier new,monospace">
$c.setDiscount(1);</span><br style="font-family:courier
new,monospace">
<span style="font-family:courier new,monospace">end</span><br
style="font-family:courier new,monospace">
<br>
If "field" is empty neither "Account" or "Customer" will be
included in the generated DRL.<br>
<br>
If "accno" is empty "Customer" will not be included in the
generated DRL.<br>
<br>
This may have an impact on what you want to achieve.<br>
<br>
With kind regards,<br>
<br>
Mike<br>
</blockquote>
<br>
</body>
</html>