<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>&nbsp;</P>
<P>I don't know how it happened, looking forward to your reply! thank you !!!<BR><BR><BR><BR><BR><BR><BR><BR>&gt;&nbsp;Try&nbsp;adding&nbsp;'dialect&nbsp;"mvel"'&nbsp;(no&nbsp;single&nbsp;quotes)&nbsp;after&nbsp;the&nbsp;rule&nbsp;name&nbsp;to&nbsp;the&nbsp;top&nbsp;of&nbsp;each&nbsp;of&nbsp;the&nbsp;rules.&nbsp;&nbsp;I&nbsp;have&nbsp;seen&nbsp;this&nbsp;error&nbsp;before&nbsp;and&nbsp;doing&nbsp;this&nbsp;resolved&nbsp;the&nbsp;issue. <BR>&gt;&nbsp; <BR>&gt;&nbsp;&gt;hello,everyone!I&nbsp;wrote&nbsp;a&nbsp;rule&nbsp;with&nbsp;Drools,but&nbsp;the&nbsp;error&nbsp;told&nbsp;me&nbsp;that&nbsp;the&nbsp;field&nbsp;Server.Message&nbsp;is&nbsp;not&nbsp;visible,&nbsp;I&nbsp;can't&nbsp;find&nbsp;how&nbsp;it&nbsp;happens.&nbsp;Please&nbsp; <BR>&gt;&nbsp;&gt;help&nbsp;me,&nbsp;I&nbsp;am&nbsp;almost&nbsp;exhausted&nbsp;with&nbsp;it.&nbsp;thank&nbsp;you. <BR>&gt;&nbsp;&gt;the&nbsp;rules&nbsp;are&nbsp;as&nbsp;follows: <BR>&gt;&nbsp;&gt;&nbsp; <BR>&gt;&nbsp;&gt;package&nbsp;com.sample <BR>&gt;&nbsp;&gt;import&nbsp;com.sample.Server; <BR>&gt;&nbsp;&gt;&nbsp; <BR>&gt;&nbsp;&gt;rule&nbsp;"system&nbsp;will&nbsp;execute&nbsp;'tc'&nbsp;command" <BR>&gt;&nbsp;&gt;&nbsp;when <BR>&gt;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;eval(Server.Message&gt;8388608) <BR>&gt;&nbsp;&gt;&nbsp;then&nbsp; <BR>&gt;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;System.out.println("The&nbsp;network&nbsp;is&nbsp;so&nbsp;crowd&nbsp;that&nbsp;it&nbsp;needs&nbsp;repairing."); <BR>&gt;&nbsp;&gt;&nbsp;&nbsp;Runtime.getRuntime().exec("tc");#execute&nbsp;the&nbsp;"tc"&nbsp;command&nbsp;end <BR>&gt;&nbsp;&gt;&nbsp; <BR>&gt;&nbsp;&gt;rule&nbsp;"caution" <BR>&gt;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;when&nbsp; <BR>&gt;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;eval(Server.Message==8388608) <BR>&gt;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;then&nbsp; <BR>&gt;&nbsp;&gt;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;System.out.println("caution!The&nbsp;network&nbsp;maybe&nbsp;will&nbsp;get&nbsp;blocked&nbsp;very&nbsp;soon.");&nbsp;end&nbsp; <BR>&gt;&nbsp;&gt;&nbsp; <BR>&gt;&nbsp;&gt;rule&nbsp;"fluent&nbsp;network" <BR>&gt;&nbsp;&gt;&nbsp;&nbsp;when <BR>&gt;&nbsp;&gt;&nbsp;&nbsp;eval(Server.Message&lt;8388608)#conditions <BR>&gt;&nbsp;&gt;&nbsp;then <BR>&gt;&nbsp;&gt;&nbsp;&nbsp;System.out.println("the&nbsp;current&nbsp;network&nbsp;is&nbsp;very&nbsp;good"); <BR>&gt;&nbsp;&gt;&nbsp;&nbsp;#actions&nbsp; <BR>&gt;&nbsp;&gt;end <BR>&gt;&nbsp;&nbsp; <BR>&gt;&nbsp; <BR>&gt;&nbsp;_______________________________________________ <BR>&gt;&nbsp;rules-users&nbsp;mailing&nbsp;list <BR>&gt;&nbsp;rules-users@lists.jboss.org <BR>&gt;&nbsp;https://lists.jboss.org/mailman/listinfo/rules-users <BR>&gt;&nbsp;</P> <br><!-- urlfiles --><br><br><!-- footer --><br>