[rules-users] "from" keyword does not actually check types?

2010-02-24 Thread Jevon Wright
Hi, I am using Drools 4.0.7, and I had a DRL rule similar to the following: rule "..." when other : Foo( ) x : Bar( ) from other.property then ... end An unexpected bug occured. In some situations, other.property would _not_ be of type Bar, yet Drools would still think that it w

[rules-users] Call for Vote: Drools support in IntelliJ IDEA

2010-02-24 Thread Ansgar Konermann
Hi everyone, I'm wondering whether there are any Drools users on this list using IntelliJ IDEA to do their regular development work. As you might know, there is currently no Drools support in IntelliJ IDEA. However, it would be nice to have this support. Switching between your Java / Groovy /

Re: [rules-users] Comparing Date with || OR operator

2010-02-24 Thread dhari
Guys, I don’t know if there is a bug in Drools while comparing Date attributes. I am trying different things. Another finding is the following code works. Membership ( $regDate : regDate) Segment ( startDate < $regDate || startDate.time > endDate.time ) It solves my problem but make

Re: [rules-users] Using Collections in LHS

2010-02-24 Thread Wolfgang Laun
2010/2/24 Ansgar Konermann : > > rule "Issue error message if items preventing discount exist" > when >   exists( ItemPreventingDiscount( $reason: reason, $item: item ) ) The exists isn't correct here; it prevents binding for $reason and $item used on the RHS. > then >   System.out.println("Disco

Re: [rules-users] Using Collections in LHS

2010-02-24 Thread Ansgar Konermann
Am 24.02.2010 08:37, schrieb Wolfgang Laun: You really ought to read all the pertaining sections in the Drools Expert manual and experiment. Nobody can write complex rules without some exercise. 2010/2/24 dhari mailto:sdh...@hotmail.com>> Thanks Jeffery. I'll try this but what if I have

Re: [rules-users] Comparing Date with || OR operator

2010-02-24 Thread Pavel Tavoda
I just read you condition. You are building $endDate to Segment.endDate and than comparing Segment.startDate with $endDate what is same as comparing Segment.startDate with Segment.endDate -> transition principle. Pavel 2010/2/24 Shabbir Dhari : > Hi Pavel > > I really don’t understand what do yo

[rules-users] connecting Drool Flow to Oracle

2010-02-24 Thread ramram
Hi All, I have tested Drools Flow using the H2 in memory database and all is fine. I am trying now to switch from the H2 memory database to Oracle: 1- What are the steps that I should follow?? 2- will this affect previous flow rules that I have created?? Regards, Ram -- View this messa

Re: [rules-users] Comparing Date with || OR operator

2010-02-24 Thread Shabbir Dhari
Hi Pavel I really don’t understand what do you mean. I guess you didn’t read complete thread carefully. Assigning endDate attribute in a variable and not using that variable in condition make no sense to me. Shabbir > Date: Wed, 24 Feb 2010 10:54:24 +0100 > From: pavel.tav...@gmail.c

[rules-users] Using DeadLines in Human Task

2010-02-24 Thread ramram
Hi All, I am trying to use the DeadLine option in the human task but I am having the following exception once trying to run the task: I am trying to run the task from the eclipse. Any Ideas [2010:02:55 13:02:118:exception] Uncaught exception on client org.apache.mina.filter.codec.ProtocolD

[rules-users] soundslike crash on 5.0.1

2010-02-24 Thread Pavel Tavoda
Maybe it's already fixed in 5.1 trunk but: ":-)" soundslike "smile" crashes Pavel ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Comparing Date with || OR operator

2010-02-24 Thread Pavel Tavoda
What about:     Membership ( $regDate : regDate)     Segment ($endDate : endDate, startDate < $regDate || startDate > endDate ) Logically startDate > endDate doesn't make sense but it should work ;-) Pavel 2010/2/24 Shabbir Dhari : > I tried with some thing different and it worked but I don’t