Hi everebody, I've a quiestion about DSL:<br><br>I have the next DSL:<br><br><span style="font-family: courier new,monospace;">[when][]Get month = $month: Month();</span><br style="font-family: courier new,monospace;">
<span style="font-family: courier new,monospace;">[when][]Get month summer = $month: Month(id in (6,7,8,9));</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;"></span><span style="font-family: courier new,monospace;">[then][]Print months = System.out.println("Month: " + $month.getId());</span><br>
<span style="font-family: courier new,monospace;"></span><br>And the next Rule:<br><br><span style="font-family: courier new,monospace;">rule dsl2drl_1</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;"> Get month summer</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;"> Print months;</span><br style="font-family: courier new,monospace;"><span style="font-family: courier new,monospace;">end</span><br><br>When the ksession fires we get the error: DSLR: [10,20]: [ERR 101] Line 10:20 no viable alternative at input 'summer' in rule dsl2drl_1<br>
<br>But It works ok if I change the first DSL from :<br><ul><li><span style="font-family: courier new,monospace;">Get month = $month: Month();</span></li></ul><span style="font-family: courier new,monospace;">to ('s' is added in 'month' word) :<br>
</span><ul><li><span style="font-family: courier new,monospace;">Get months = $month: Month();</span></li></ul><br>What could be the problem? I use Drools 5.0.0.CR1 and jdk1.5.0_16<br><br>I attached a small project for test.<br>
<br>Thanks<br><br><br><br><br style="font-family: courier new,monospace;">-- <br>Luis Enrique Silva Valdivieso<br>Cel. 00 51 1 991546707<br>Casa 00 51 1 4476616<br>