[rules-users] HELP - Problem creating package -validateUniqueRuleNames(PackageBuilder.java:830)

Wolfgang Laun wolfgang.laun at gmail.com
Fri Mar 4 11:27:52 EST 2011


2011/3/4 Sale
>
> This is my DSLR:
>
> package cit.coverage;
>
> expander Coverage.dsl
>
> rule "rrr"
>
>         auto-focus true
>
>         when
>
>                 He is nice
>
>         then
>
>                 He is happy
>
> end
>
> *This is my DSL** Coverage.dsl**:*
>
> [condition][]He is nice=eval(true)
>
> [consequence][]He is happy=eval(System.out.println("HA HA"))
>
This is not a correct Java statement, as it should be for the consequence:
   - eval() is not valid here
   - There is no semicolon at the end

This would be correct:
   [consequence][]He is happy=System.out.println("HA HA");

The NPE should be gone in 5.2.0.
-W
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110304/b747097b/attachment.html 


More information about the rules-users mailing list