[rules-users] help! the field *** is not visible

赵慧 zhaoh at hpnl.ac.cn
Tue Apr 12 02:46:05 EDT 2011



hello,everyone!I wrote a rule with Drools,but the error told me that the field Server.Message is not visible, I can't find how it happens. Please help me, I am almost exhausted with it. thank you.
the rules are as follows:
 
package com.sample
import com.sample.Server;
 
rule "system will execute 'tc' command"
 when
    eval(Server.Message>8388608)
 then 
     System.out.println("The network is so crowd that it needs repairing.");
  Runtime.getRuntime().exec("tc");#execute the "tc" command
end
 
rule "caution"
    when 
        eval(Server.Message==8388608)
    then 
        System.out.println("caution!The network maybe will get blocked very soon.");
end 
 
rule "fluent network"
  when
  eval(Server.Message<8388608)#conditions
 then 
  System.out.println("the current network is very good");#actions
end
 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110412/a3674432/attachment.html 


More information about the rules-users mailing list