How can we help you if you don&#39;t show us the text of your .drl file?<br><br>All I can see is that the DRL parser could not find&nbsp; &quot;rule&quot; (failing several other alternatives) and then found the identifier &quot;com&quot; and didn&#39;t know what to do with it.<br>
<br>This happens in line 4, position 0 (a misspelled &quot;import&quot;?) and 9 (&quot;com&quot;).<br><br>-W<br><br><div class="gmail_quote">2011/4/13 ÕÔ»Û <span dir="ltr">&lt;<a href="mailto:zhaoh@hpnl.ac.cn">zhaoh@hpnl.ac.cn</a>&gt;</span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><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 &#39;rule_key&#39; failed predicate: {(validateIdentifierKey(DroolsSoftKeywords.RULE))}? in rule<br>[4,9]: [ERR 101] Line 4:9 no viable alternative at input &#39;com&#39; in rule package</div>

<p>&nbsp;</p>
<p>I don&#39;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;&#39;dialect&nbsp;&quot;mvel&quot;&#39;&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&#39;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;&quot;system&nbsp;will&nbsp;execute&nbsp;&#39;tc&#39;&nbsp;command&quot; <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(&quot;The&nbsp;network&nbsp;is&nbsp;so&nbsp;crowd&nbsp;that&nbsp;it&nbsp;needs&nbsp;repairing.&quot;); <br>&gt;&nbsp;&gt;&nbsp;&nbsp;Runtime.getRuntime().exec(&quot;tc&quot;);#execute&nbsp;the&nbsp;&quot;tc&quot;&nbsp;command&nbsp;end <br>
&gt;&nbsp;&gt;&nbsp; <br>&gt;&nbsp;&gt;rule&nbsp;&quot;caution&quot; <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(&quot;caution!The&nbsp;network&nbsp;maybe&nbsp;will&nbsp;get&nbsp;blocked&nbsp;very&nbsp;soon.&quot;);&nbsp;end&nbsp; <br>
&gt;&nbsp;&gt;&nbsp; <br>&gt;&nbsp;&gt;rule&nbsp;&quot;fluent&nbsp;network&quot; <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(&quot;the&nbsp;current&nbsp;network&nbsp;is&nbsp;very&nbsp;good&quot;); <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;<a href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a> <br>
&gt;&nbsp;<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a> <br>&gt;&nbsp;</p> <br><br><br><br>

<br>_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br></blockquote></div><br>