I want to build a excel decision table to implement the logic described as the following drl script:<br><br>======<br><br>global pricebook.PricingResult result;<br><br>rule &quot;pricing&quot;<br>when<br>    $so : SalesOrder( <a href="http://customer.name">customer.name</a>==&quot;customer1&quot;, from == &quot;location1&quot;, to ==&quot;location2&quot;)<br>
    <b>$sol : SalesOrderLine($sol.count &gt;= 0, $sol.count &lt; 100) from $so.lines </b><br>then<br>        result.setPricingMode(&quot;A&quot;);<br>        result.setUnitPrice(300.0f);<br>end<br>======<br><br>The java model for the script above is something like this:<br>
<br>======<br>class SalesOrder{<br>    ...<br>    List&lt;SalesOrderLine&gt; lines;<br>    ...<br>}<br>======<br><br>In the excel decision table, I defined variables with the following text in excel cells:<br>======<br>$so : SalesOrder             <br>
<b>$sol : SalesOrderLine ( ) from so.lines</b><br>...<br>======<br><br>The CONDITION column is defined as :<b> $sol.count &gt;= $1, $sol.count &lt; $2</b><br><br><br>The decision table is translated into the following drl script:<br>
<br>global pricebook.PricingResult result;<br><br>rule &quot;pricing&quot;<br>when<br>    $so : SalesOrder( <a href="http://customer.name">customer.name</a>==&quot;customer1&quot;, from == &quot;location1&quot;, to ==&quot;location2&quot;)<br>
   <b> $sol : SalesOrderLine from $so.lines($sol.count &gt;= 0, $sol.count &lt; 100) </b><br>then<br>        result.setPricingMode(&quot;A&quot;);<br>        result.setUnitPrice(300.0f);<br>end<br><br>We can see that<b> &quot;$soi : SalesOrderLine ( ) from so.lines&quot;</b> in the excel decision table is translated into<b> &quot;$sol : SalesOrderLine from $so.lines($sol.count &gt;= 0, $sol.count &lt; 100)&quot; </b> instead of  <b>&quot;$sol : SalesOrderLine($sol.count &gt;= 0, $sol.count &lt; 100) from $so.lines&quot;</b>, which causes an error.<br>
<br>My question is, how to write the variable definition of SalesOrderLine in excel so that drools can translate it into something like &quot;$sol : SalesOrderLine($sol.count &gt;= 0, $sol.count &lt; 100) from $so.lines &quot; ?<br>
<br>Any ideas? <br><br>Thanks in advance...<br>