Re: [rules-users] help! the field *** is not visible

2011-04-12 Thread Wolfgang Laun
Still, accessing the class field com.sample.Server.Message in eval() in this way is almost certainly not a good approach. But note that dialect "mvel" may be written preceding all the rules it should apply to. -W On 12 April 2011 14:38, John Peterson wrote: > Try adding 'dialect "mvel"' (no

Re: [rules-users] help! the field *** is not visible

2011-04-12 Thread John Peterson
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. >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

Re: [rules-users] help! the field *** is not visible

2011-04-12 Thread Michael Anstis
A better approach would be to use:- rule "system will execute 'tc' command" when Server(message>8388608) then System.out.println("The network is so crowd that it needs repairing."); Runtime.getRuntime().exec("tc");#execute the "tc" command end This assumes you insert Server facts int

[rules-users] help! the field *** is not visible

2011-04-11 Thread 赵慧
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 help me, I am almost exhausted with it. thank you. the rules are as follows: package com.sample import com.sample.Server; rule "system will execu