[rules-users] Simple Global Error !!

abhinay_agarwal abhinay_agarwal at infosys.com
Mon Jul 16 05:53:40 EDT 2012


global java.lang.Integer count


rule "rule1"
agenda-group "1"
when
       //smething 
then
      count=0;
      System.out.println(count); // output is 0
      count = count +1;
      System.out.println(count); // output is 1
      drools.setFocus("2");
end


rule "rule2"
agenda-group "2"
when
       //smething 
then
      System.out.println(count); // output is 0
end      

in the rule2, the value of the global variable "count" must be 1, why m i
getting it as zero ?

--
View this message in context: http://drools.46999.n3.nabble.com/Simple-Global-Error-tp4018697.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list