<P>&nbsp;hello,everyone! I wrote a rule with Drools, I&nbsp;compile&nbsp;the&nbsp;program&nbsp;and&nbsp;get&nbsp;the&nbsp;errors&nbsp;as&nbsp;follows:&nbsp;</P>
<P><BR>[3,0]: [ERR 103] Line 3:0 rule 'rule_key' failed predicate: {(validateIdentifierKey(DroolsSoftKeywords.RULE))}? in rule<BR>[3,9]: [ERR 101] Line 3:9 no viable alternative at input 'com' in rule package<BR>[7,0]: [ERR 101] Line 7:0 no viable alternative at input 'import' in rule package in rule sample&nbsp; </P>
<P><BR>I&nbsp;don't&nbsp;know&nbsp;how&nbsp;it&nbsp;happened,&nbsp;looking&nbsp;forward&nbsp;to&nbsp;your&nbsp;reply!&nbsp;thank&nbsp;you&nbsp;!!! </P>
<P>&nbsp;</P>
<P>PS: My rules are here:</P>
<P>&nbsp;dialect "mvel"<BR>package&nbsp; com.sample</P>
<P>import com.sample.Server;</P>
<P><BR>rule "system will execute 'tc' command"<BR>&nbsp;&nbsp; <BR>&nbsp;when<BR>&nbsp;&nbsp;&nbsp; eval(Server.Message&gt;8388608)<BR>&nbsp;then <BR>&nbsp;&nbsp;&nbsp;&nbsp; System.out.println("The network is so crowd that it needs repairing.");<BR>&nbsp;&nbsp;&nbsp;&nbsp;Runtime.getRuntime().exec("tc");#give the authority and execute the "tc" command<BR>end</P>
<P>&nbsp;</P>
<P>rule "caution"<BR>&nbsp;&nbsp;&nbsp; when <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; eval(Server.Message==8388608)<BR>&nbsp;&nbsp;&nbsp; then <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; System.out.println("caution!The network maybe will get blocked very soon.");<BR>end </P>
<P>&nbsp;</P>
<P>rule "fluent network"<BR>&nbsp;&nbsp;when<BR>&nbsp;&nbsp;eval(Server.Message&lt;8388608)#conditions<BR>&nbsp;then <BR>&nbsp;&nbsp;System.out.println("the current network is very good");#actions<BR>end</P>
<P>&nbsp;</P>
<P>&nbsp;</P>
<P>&nbsp;</P> <br><!-- urlfiles --><br><br><!-- footer --><br>