[rules-users] help! rulerule_key failed to predicate

2011-04-15 Thread 赵慧
hello,everyone! I wrote a rule with Drools, I compile the program and get the errors as follows: [3,0]: [ERR 103] Line 3:0 rule 'rule_key' failed predicate: {(validateIdentifierKey(DroolsSoftKeywords.RULE))}? in rule [3,9]: [ERR 101] Line 3:9 no viable alternative at input 'com' in rule

Re: [rules-users] help! rulerule_key failed to predicate

2011-04-15 Thread FrankVhh
Hi, I thnik you might need to reposition dialect = mvel. The compiling error will go away if you put it inside each of your rules. See example: rule system will execute 'tc' command when dialect mvel eval(Server.Message8388608) then System.out.println(The network is so crowd

Re: [rules-users] help! rulerule_key failed to predicate

2011-04-15 Thread Wolfgang Laun
The package declaration must be first. You don't have to insert the dialect attribute into each rule. Please consult the manual when programming. -W 2011/4/15 赵慧 zh...@hpnl.ac.cn hello,everyone! I wrote a rule with Drools, I compile the program and get the errors as follows: [3,0]:

Re: [rules-users] help! rulerule_key failed to predicate

2011-04-13 Thread Wolfgang Laun
How can we help you if you don't show us the text of your .drl file? 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. This happens in line 4, position 0 (a misspelled import?) and

[rules-users] help! rulerule_key failed to predicate

2011-04-12 Thread 赵慧
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: [4,0]: [ERR 103] Line 4:0 rule 'rule_key' failed predicate: {(validateIdentifierKey(DroolsSoftKeywords.RULE))}? in rule [4,9]: [ERR 101] Line 4:9 no