[rules-users] Implementing multiple 'and' 'or' conditions
Wolfgang Laun
wolfgang.laun at gmail.com
Tue Jan 25 06:33:40 EST 2011
You must separate constraints with a comma:
MyEvent(id == "Backlogged " , source == “SDCS1Site1”)
Do not surround a simple pattern with parentheses:
MyEvent(id == "83020402")
It should be possible to write your rule according to:
(P(...)
or
P(...)
or
P(...))
P(...)
P(...)
-W
On 25 January 2011 12:21, Ayush <ayush.vatsyayan at alcatel-lucent.com> wrote:
>
> Hi, Thanks for your reply.
> Actually it is lot more complex. Let me present it this way
>
> (
> (MyEvent(id == "83020402"))
> or
> MyEvent()
> (Number( doubleValue >= $numberofISGCDBnodes*.50 )
> from accumulate( MyEvent( id == 83020401),count()))
> or
> (MyEvent(id == "83030407"))
> )
> and
> (MyEvent(id == "Backlogged " source == “SDCS1Site1”))
> and
> (MyEvent(id == "MonitorDataUnavailable" source == “SDCS1Site1”
> ))
> and
> (MyEvent(id == "Backlogged " source == “SDCS1”))
> and
> (MyEvent(id == "DataUnavailable" source == “SDCS2” ))
> and
> (MyEvent(id == "RepoFail " ))
> and
> (MyEvent(id == "apiRepoFail" ))
> --
> View this message in context:
> http://drools-java-rules-engine.46999.n3.nabble.com/Implementing-multiple-and-or-conditions-tp2328123p2328268.html
> Sent from the Drools - User mailing list archive at Nabble.com.
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110125/e2e6ec33/attachment.html
More information about the rules-users
mailing list