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.
_______________________________________________
rules-users mailing list
rules-users@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users

Reply via email to