How can we help you if you don't show us the text of your .drl file?<br><br>All I can see is that the DRL parser could not find "rule" (failing several other alternatives) and then found the identifier "com" and didn't know what to do with it.<br>
<br>This happens in line 4, position 0 (a misspelled "import"?) and 9 ("com").<br><br>-W<br><br><div class="gmail_quote">2011/4/13 ÕÔ»Û <span dir="ltr"><<a href="mailto:zhaoh@hpnl.ac.cn">zhaoh@hpnl.ac.cn</a>></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 '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>> <a href="mailto:rules-users@lists.jboss.org" target="_blank">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>> </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>