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")
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
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
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
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.
__
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
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