Re: [rules-users] APIs to create rules

2012-01-17 Thread bobbi_80
Thanks a ton MarK. For benefit of others who may read this post here is the code snippet. PackageDescr pkg = DescrFactory.newPackage() .name("org.drools.example") .newRule().name("Xyz") .attribute("ruleflow-grou","bla")

[rules-users] APIs to create rules

2012-01-16 Thread bobbi_80
public static class CpuTracker{ private String machinename; private String averageCPU; } Consider the following rule : rule first_rule @ID(“1”) when averageCPU > 80 then syso("do something"); end I have t

Re: [rules-users] using CE accumulate

2012-01-15 Thread bobbi_80
Understand now. Thanks a million. -- View this message in context: http://drools.46999.n3.nabble.com/using-CE-accumulate-tp3662339p3662379.html Sent from the Drools: User forum mailing list archive at Nabble.com. ___ rules-users mailing list rules-users

[rules-users] using CE accumulate

2012-01-15 Thread bobbi_80
Hi, I have the following bean and trying to run "accumulate" to get the average of CPU usage from a cluster. public static class cpuTracker{ private String machinename; private String averageCPU; } My rule is as follows. rule check when

Re: [rules-users] query in drools expert :: rule language

2011-12-26 Thread bobbi_80
sorry forgot to mention that part. I am using 5.3.0 final. -- View this message in context: http://drools.46999.n3.nabble.com/query-in-drools-expert-rule-language-tp3612345p3612453.html Sent from the Drools: User forum mailing list archive at Nabble.com. __

Re: [rules-users] query in drools expert :: rule language

2011-12-26 Thread bobbi_80
Hi luane, thanks for that. Using the expression under eval() solves the problem. I don't develop the objects I am applying the rule against. So I have to make do with string datatype. cheers. -- View this message in context: http://drools.46999.n3.nabble.com/query-in-drools-expert-rule-language

[rules-users] query in drools expert :: rule language

2011-12-25 Thread bobbi_80
Hi , I want to know if there is any way I can evaluate a string in rule language. Here is what I am doing DroolsTest.java has a class as follows. DroolsTest.java public static class cpuTracker{ private String machinename; private String