Hi everebody, I've a quiestion about DSL:
I have the next DSL:
[when][]Get month = $month: Month();
[when][]Get month summer = $month: Month(id in (6,7,8,9));
[then][]Print months = System.out.println("Month: " + $month.getId());
And the next Rule:
rule dsl2drl_1
when
Get month summer
then
Print months;
end
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
But It works ok if I change the first DSL from :