[jboss-jira] [JBoss JIRA] Created: (JBRULES-699) syntactically correct rule files are marked with errors

Dr. Gernot Starke (JIRA) jira-events at lists.jboss.org
Thu Feb 22 03:10:35 EST 2007


syntactically correct rule files are marked with errors
-------------------------------------------------------

                 Key: JBRULES-699
                 URL: http://jira.jboss.com/jira/browse/JBRULES-699
             Project: JBoss Rules
          Issue Type: Bug
      Security Level: Public (Everyone can see)
          Components: Eclipse IDE
    Affects Versions: 3.0.5, 3.0.4
         Environment: Eclipse 3.2, both on Mac OS X and Windows XP
            Reporter: Dr. Gernot Starke
         Assigned To: Mark Proctor


Although rule-files are syntactically correct (tutorial example), parser within Eclipse plugin marks them as erroneous. Deleting the rule, re-typing it in editor resolves the problem. Example (displays error in eclipse package explorer):
#created on: 14.02.2007
package com.sample.business

#list any import classes here.
import com.sample.Person;
import java.util.ArrayList;

#declare any global variables here
global ArrayList zorglist;


rule "erwachsene Person bekommt Kredit"

	when
		person: Person( age >= 18 )
	then
		System.out.println("Erwachsener in Sicht: " + person.getName());
		zorglist.add( person.getName());

end



rule "no credit"
	when
		Person( personName : name, age < 18)
	then
		System.out.println( "denied for " + personName );
end

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list