Sorry .. no use. I made those changes but nothing different. I’ll try 5.2.

 

saleem

 

From: rules-users-bounces@lists.jboss.org [mailto:rules-users-bounces@lists.jboss.org] On Behalf Of Wolfgang Laun
Sent: Friday, March 04, 2011 11:28 AM
To: Rules Users List
Subject: Re: [rules-users] HELP - Problem creating package-validateUniqueRuleNames(PackageBuilder.java:830)

 

 

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