[rules-users] Simple DSL example

Wolfgang Laun wolfgang.laun at gmail.com
Thu Oct 21 03:09:06 EDT 2010


It seems that your DSL file is being parsed as a DRL file.

You don't have, by any chance, a newline after "likes" and before "{cheese}"?

-W

#some description
[when]There is a person with the name of {name} who likes
{cheese}=Person(name=="{name}", likes=="{cheese}")

On 21 October 2010 07:51, morge <maxime.morge at lifl.fr> wrote:
>
> Thanks.
>
> I am using the latest up-to-date Drools 5.1.
> I have  changed  DSL to DSLR.
>
> Whatever I include or not the expander in the DRL file, I have
> the following error message:
>
> [2,0]: [ERR 101] Line 2:0 no viable alternative at input '['
> [8,0]: [ERR 103] Line 8:0 rule 'rule_key' failed predicate:
> {(validateIdentifierKey(DroolsSoftKeywords.RULE))}? in rule
> 15,2]: [ERR 101] Line 15:2 no viable alternative at input 'There' in rule
> "my rule"
>
> This example is included in drools-compiler in (integrationtests), but it
> seems that I miss something.
>
> Your help will be appreciated on this.
>
> Best,
>
> MM.
>
> --
> View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Simple-DSL-example-tp1741029p1743732.html
> Sent from the Drools - User mailing list archive at Nabble.com.
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>




More information about the rules-users mailing list