Hi, I'm getting problem while executing rule with or condition.
My rule is like
MyEvent () from entry-point MyStream
Number($objCountForOne : doubleValue) from accumulate( MyEvent(prop1 ==
"One") over window:time(1m) from entry-point MyStream,count())
eval($objCountForOne > getMyNodeCount()*0.35)
or
MyEvent () from entry-point MyStream
Number( $objCountForTwo : doubleValue) from accumulate( MyEvent(prop1 ==
"Two"), count())
eval($objCountForTwo >= getMyConnectionCount()*0.40)
The above rule both conditions run well when executed separately but when I
merge them using or they don't work well. When I inserted the event for 1st
condition it does not gets executed because the last eval line in 2nd
condition i.e. "eval($objCountForTwo >= getMyConnectionCount()*0.40)" is
false.
Now I have to run them like if conditions in java i.e. if(1st == true || 2nd
== true) then do my work.
Please let me know how can I solve it?
Thanks in advance.
--
View this message in context:
http://drools-java-rules-engine.46999.n3.nabble.com/Problem-with-or-condi...
Sent from the Drools - User mailing list archive at
Nabble.com.