[rules-users] Drools3 syntax fails in Drools5

agopalkr gopalkrishnan.ananthanarayanan at citi.com
Thu Apr 22 09:19:32 EDT 2010


I am trying to migrate from Drools3 to Drools 
There is one particular syntax which works in Drools3 but not in Drools5. 
rule "Test Long2" 
     when 
                //Gives error in D5 
                m : MyLongValue(id1) 
     then           
        System.out.println("did it2:::::" + m); 
end 

The question I have is 
1. What is the meaning of the syntax MyLongValue(id1) ? 
2. What is the equivalent syntax in Drools5? 


MyLongValue { 
        private Long id1; 
        public void setId1(Long x) { 
                id1 = x; 
        } 

        public Long getId1() { 
                return id1; 
        } 
} 
-- 
View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools3-syntax-fails-in-Drools5-tp742836p742836.html
Sent from the Drools - User mailing list archive at Nabble.com.



More information about the rules-users mailing list