<br> This looks like a bug in the DSL template engine. <br> May I ask you plz to open a JIRA?<br><br> If you want to try to fix it yourself and submit the patch, it is probably easy to do it. Probably only a matter of fixing the patterns in DefaultExpander class. Otherwise, I will do it as soon as I have time.<br>
<br> Thanks,<br> Edson<br><br><div><span class="gmail_quote">2008/2/5, Markus Helbig <<a href="mailto:mhelbig81@googlemail.com">mhelbig81@googlemail.com</a>>:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
No solution for the problem below?<br><br>Ok so the question is: Is it possible to combine DSL language and DSRL<br>language in a DSLR file?<br><br>2008/1/28, Markus Helbig <<a href="mailto:mhelbig81@googlemail.com">mhelbig81@googlemail.com</a>>:<br>
> ok this works, BUT using a DSL it fails again.<br>><br>> DSL:<br>><br>> [condition][]is a Person=Person()<br>> [condition][]- female=sex == "f"<br>> [condition][]- male=sex == "f"<br>
> [condition][]- age {value}=age=={value}<br>><br>> DSLR:<br>><br>> rule<br>> when<br>> ($person: is a Person<br>> - male<br>> - age 60<br>> or<br>
> $person: is a Person<br>> - female<br>> - age 70)<br>> then<br>> end<br>><br>> resolves to:<br>> |<br>> \/<br>
> .... ($person: Person( , sex="m", age == 60)<br>> or<br>> $person: Person(sex="f", age == 70))<br>><br>><br>> the "," seems to be the problem ..<br>><br>> Cheers<br>
><br>> Markus<br>><br>> 2008/1/28, Krishnan Sivaramakrishna Iyer <<a href="mailto:krishiyer@gmail.com">krishiyer@gmail.com</a>>:<br>> ><br>> > Hi Markus,<br>> ><br>> > can u try this please ?<br>
> ><br>> > (pensioner : Person( sex == "f", age > 60 )<br>> > or pensioner : Person( sex == "m", age > 65 ) )<br>> ><br>> > -Krishnan<br>> ><br>> > Markus Helbig wrote:<br>
> > > This is from Drools documentation<br>> > ><br>> > > Example 6.36. or with binding<br>> > ><br>> > > pensioner : (or Person( sex == "f", age > 60 )<br>> > > Person( sex == "m", age > 65 ) )<br>
> > ><br>> > > Explicit binding on each Pattern is also allowed.<br>> > ><br>> > > (or pensioner : Person( sex == "f", age > 60 )<br>> > > pensioner : Person( sex == "m", age > 65 ) )<br>
> > ><br>> > ><br>> > > but trying to get this to work resolves in:<br>> > ><br>> > > [60,8]: unknown:60:8 Unexpected token 'or'[62,8]: unknown:62:8<br>> > > mismatched token: [@639,2279:2291='Person',<7>,62:8]; expecting type<br>
> > > RIGHT_PAREN[62,81]: unknown:62:81 mismatched token:<br>> > > [@656,2352:2352=')',<12>,62:81]; expecting type THEN<br>> > ><br>> > > Any ideas (using Drools 4.0.4)?<br>
> > ><br>> > > Cheers<br>> > ><br>> > > Markus<br>> > > _______________________________________________<br>> > > rules-users mailing list<br>> > > <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
> > > <a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>> > ><br>> ><br>> > _______________________________________________<br>
> > rules-users mailing list<br>> > <a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>> > <a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
> ><br>><br>_______________________________________________<br>rules-users mailing list<br><a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</blockquote></div><br><br clear="all"><br>-- <br> Edson Tirelli<br> JBoss Drools Core Development<br> Office: +55 11 3529-6000<br> Mobile: +55 11 9287-5646<br> JBoss, a division of Red Hat @ <a href="http://www.jboss.com">www.jboss.com</a>