Anagha,
Its not a good idea to use || in conditions - instead write out two
rules for the different outcomes. However I thought that || had been
made allowed in conditions, for those that insist on using it - has
anyone else been able to use || in conditions? If || has not been yet
made available i'm afraid you will have to wait till 3.0.
Mark
Anagha wrote:
Hi All,
I'm using drools-2.1 with java semantics.
I want to combine multiple condtions in a single condition with OR.
i.e. if * (hello.equals("Hi") || hello.equals("Hey")
But it seems "java.xsd" does not allow such type of constructs in the
"condition".
Any ideas?
Any help is welcome.
--
Thanks & Regards,
Anagha