<DIV>hi,thank you very much for helping me with the problem.nevertheless,I have got another error. I compile the program and get the errors as follows:</DIV>
<DIV>[4,0]: [ERR 103] Line 4:0 rule 'rule_key' failed predicate: {(validateIdentifierKey(DroolsSoftKeywords.RULE))}? in rule<BR>[4,9]: [ERR 101] Line 4:9 no viable alternative at input 'com' in rule package</DIV>
<P> </P>
<P>I don't know how it happened, looking forward to your reply! thank you !!!<BR><BR><BR><BR><BR><BR><BR><BR>> Try adding 'dialect "mvel"' (no single quotes) after the rule name to the top of each of the rules. I have seen this error before and doing this resolved the issue. <BR>> <BR>> >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 <BR>> >help me, I am almost exhausted with it. thank you. <BR>> >the rules are as follows: <BR>> > <BR>> >package com.sample <BR>> >import com.sample.Server; <BR>> > <BR>> >rule "system will execute 'tc' command" <BR>> > when <BR>> > eval(Server.Message>8388608) <BR>> > then <BR>> > System.out.println("The network is so crowd that it needs repairing."); <BR>> > Runtime.getRuntime().exec("tc");#execute the "tc" command end <BR>> > <BR>> >rule "caution" <BR>> > when <BR>> > eval(Server.Message==8388608) <BR>> > then <BR>> > System.out.println("caution!The network maybe will get blocked very soon."); end <BR>> > <BR>> >rule "fluent network" <BR>> > when <BR>> > eval(Server.Message<8388608)#conditions <BR>> > then <BR>> > System.out.println("the current network is very good"); <BR>> > #actions <BR>> >end <BR>> <BR>> <BR>> _______________________________________________ <BR>> rules-users mailing list <BR>> rules-users@lists.jboss.org <BR>> https://lists.jboss.org/mailman/listinfo/rules-users <BR>> </P> <br><!-- urlfiles --><br><br><!-- footer --><br>