<P> hello,everyone! I wrote a rule with Drools, I compile the program and get the errors as follows: </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 </P>
<P><BR>I don't know how it happened, looking forward to your reply! thank you !!! </P>
<P> </P>
<P>PS: My rules are here:</P>
<P> dialect "mvel"<BR>package com.sample</P>
<P>import com.sample.Server;</P>
<P><BR>rule "system will execute 'tc' command"<BR> <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");#give the authority and execute the "tc" command<BR>end</P>
<P> </P>
<P>rule "caution"<BR> when <BR> eval(Server.Message==8388608)<BR> then <BR> System.out.println("caution!The network maybe will get blocked very soon.");<BR>end </P>
<P> </P>
<P>rule "fluent network"<BR> when<BR> eval(Server.Message<8388608)#conditions<BR> then <BR> System.out.println("the current network is very good");#actions<BR>end</P>
<P> </P>
<P> </P>
<P> </P> <br><!-- urlfiles --><br><br><!-- footer --><br>