<p dir="ltr">Closing the loop.</p>
<p dir="ltr">Implemented as proposed and seconded by Wolfgang with the additional nicety of also checking for common auto-corrections in spreadsheet applications (left-quote/right-quote replacing double-quote etc).</p>
<p dir="ltr">Also ensured guided templates, guided decision tables and XLS decision tables all work consistently with empty cells and empty Strings.</p>
<p dir="ltr">Sent on the move</p>
<div class="gmail_quote">On 1 Aug 2014 13:42, "Wolfgang Laun" <<a href="mailto:wolfgang.laun@gmail.com">wolfgang.laun@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 01/08/2014, Michael Anstis <<a href="mailto:michael.anstis@gmail.com">michael.anstis@gmail.com</a>> wrote:<br>
<br>
> I propose the following:<br>
><br>
> - For a Pattern, with no constraints we exclude the pattern (this is<br>
> current XLS behaviour).<br>
><br>
> e.g. Person( name == $name, age == $age ). If we don't provide values for<br>
> $name and $age we don't include the Person pattern. If a user wants to<br>
> include the Pattern they'd need to add a constraint "this != null".<br>
><br>
> If we include the pattern when there are no constraints then it is more<br>
> difficult to provide a work-around to exclude the pattern if this is what<br>
> some users need (and since it's the existing behaviour; less likely to be<br>
> an issue for the majority of XLS users).<br>
><br>
><br>
> - Support escaping String literals with quotes; so a user would enter ""<br>
> or " ". This make it obvious that the cell contains a non-null value.<br>
> The<br>
> surrounding quotation marks would be stripped before being used in the<br>
> DRL.<br>
<br>
If the first character is not the quote character (0x22), assume that<br>
the value in the cell is the actual value of a String. The result to<br>
be used in DRL code will be quoted, and all characters will be escaped<br>
as required according to Java rules.<br>
<br>
If the first character is a quote character (0x22), assume that the<br>
value in the cell is a complete String literal, according to Java<br>
rules. It will be used "as is" in DRL code.<br>
<br>
my 2¢<br>
Wolfgang<br>
<br>
<br>
<br>
><br>
><br>
> WDYT? Should I put this out to the community for opinions too?<br>
><br>
> With kind regards,<br>
><br>
> Mike<br>
><br>
<br>
_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
</blockquote></div>