[rules-users] Fundamental Question

2008-04-23 Thread Raffi Khatchadourian
What is the difference in using a rules engine like drools as opposed to using either an object database or ORDBMS mapping to a database with triggers? ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rule

[rules-users] Generics?

2008-04-23 Thread Raffi Khatchadourian
Any plans to incorporate generics into the drools API? ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] Progress Monitors?

2008-04-23 Thread Raffi Khatchadourian
Any plans to support eclipse progress monitors in the drools API? ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

[rules-users] Where can I find the Brms (Guvnor) for Drools 5

2008-04-23 Thread Benjamin Romney Rasmussen (EOGS)
I have tried to go through http://anonsvn.labs.jboss.com/labs/jbossrules/ without any luck. Can anyone help out? Thanks, Benjamin -- This message was scanned by ESVA and is believed to be clean. ___ rules-users mailing list rules-users@lists.jboss.or

RE: [rules-users] jdk 1.6 support

2008-04-23 Thread Jin, Ming
Jeffery, We are definitely going to run the Drools 5, only the compiler and engine part, under jdk 1.6 since this is going to be the version for our production environment. We just integrated the pre-release Drools 5.0 for the new project under development; so far no issues for our usage. Thanks

Re: [rules-users] ShadowProxy & PersistentSet

2008-04-23 Thread Mark Proctor
Can you open a JIRA for this? If you provide a unit test with it, we'll see if we can include this in 4.0.7. 5.0 will now have shadow proxies any more, as default. Mark vdelbart wrote: I think the method cloneObject 'ShadowProxyUtils' could be improve like follow : public static Object clo

Re: [rules-users] Collection & Emptyness

2008-04-23 Thread Mark Proctor
I'd create a function called isEmpty, or call of a static method on a class. VenueGlobal( (isEmpty( sousVenues) ) ) Mark vdelbart wrote: Hi, I have an object 'VenueGlobal' with a property 'sousVenues' who is a List of SousVenue. I try to test the emptyness of this list in on sentence but i d

Re: [rules-users] jdk 1.6 support

2008-04-23 Thread Mark Proctor
Jeffrey Delong wrote: Are there plans to support jdk 1.6 with Drools 5.0? Ming, from Sabre, is looking into it. He has fixed some thngs already. Would be nice to support it, assuming we can fix all issues. Thanks, Jeff ___ rules-users mailing list r

[rules-users] Handle not found for object if using treeset

2008-04-23 Thread rjlist
Hi All, i've a simple rules that retract objects form the WM rule "Retract From ArrayList" when $total: ArrayList() from collect ( PrestationFacturable() ) then retract($total.get(0)); end at the end of fireAll all the fact are well retracted but if I replac

Re: [rules-users] ShadowProxy & PersistentSet

2008-04-23 Thread vdelbart
I think the method cloneObject 'ShadowProxyUtils' could be improve like follow : public static Object cloneObject(Object original) { Object clone = null; if ( original instanceof Cloneable ) { try { Method cloneMethod = original.getClass().getMethod(

Re: [rules-users] Re: Is this scenario suitable for using Drools?

2008-04-23 Thread Cheng Wei Lee
Thanks Mike! I'm a total newbie here with Drools, so what I'm going to do is to take your solution and try it out. Cheers! On Wed, Apr 23, 2008 at 4:28 PM, Anstis, Michael (M.) <[EMAIL PROTECTED]> wrote: > Thanks Steve, > > This fixed the problem! > > For Cheng Wei Lee's benefit this is the co

Re: [rules-users] Re: Is this scenario suitable for using Drools?

2008-04-23 Thread Cheng Wei Lee
I'm not using Drools yet; was thinking whether would I gain from using Drools with my situation and more importantly whether could I achieve what I need to with Drools. Actually even before coming to the cost calculation, there're a bunch of business rules that I need to apply to determine if I ne

RE: [rules-users] Re: Is this scenario suitable for using Drools?

2008-04-23 Thread Anstis, Michael (M.)
Thanks Steve, This fixed the problem! For Cheng Wei Lee's benefit this is the complete solution (I had to fix another part):- public class DBUtils { public Collection getNumbers() { Integer[] numbers = new Integer[10]; for (int i = 0; i < numbers.length; i++) {

Re: [rules-users] Re: Is this scenario suitable for using Drools?

2008-04-23 Thread Steven Williams
without knowing how you are accessing the database your two algorithms come down to something like: Alg. 1 max(select max(p) from y, select max(t) from z) Alg. 2 select min(p) from y + select min(t) from z which is basically the same as what Michael has proposed. Personally I think if you are a

Re: [rules-users] Re: Is this scenario suitable for using Drools?

2008-04-23 Thread Steven Williams
change DBUtils to return a Collection and it should work I think. On Wed, Apr 23, 2008 at 5:50 PM, Anstis, Michael (M.) <[EMAIL PROTECTED]> wrote: > So, in my usual helpful manner I thought Drools would be a perfect match > and put together what I thought would be a simple example:- > > package

Re: [rules-users] Collection & Emptyness

2008-04-23 Thread Steven Williams
use sousVenues.empty == true On Wed, Apr 23, 2008 at 5:32 PM, vdelbart <[EMAIL PROTECTED]> wrote: > > Hi, > > I have an object 'VenueGlobal' with a property 'sousVenues' who is a List > of > SousVenue. I try to test the emptyness of this list in on sentence but i > don't know why it doesn't work

RE: [rules-users] What-if analysis

2008-04-23 Thread Anstis, Michael (M.)
I believe this is an example of backwards-chaining. (From the manual) Drools only supports forward-chaining at present although "...Drools will be adding support for Backward Chaining in its next major release...". Have you looked at Geoffrey De Smet's drools-solver excellent work? Will this pr

RE: [rules-users] Re: Is this scenario suitable for using Drools?

2008-04-23 Thread Anstis, Michael (M.)
So, in my usual helpful manner I thought Drools would be a perfect match and put together what I thought would be a simple example:- package com.sample global com.sample.DBUtils dbutils; rule "a1" when $max : Integer() from accumulate( Integer( $v : intValue ) from dbutils.getNumbe

[rules-users] Collection & Emptyness

2008-04-23 Thread vdelbart
Hi, I have an object 'VenueGlobal' with a property 'sousVenues' who is a List of SousVenue. I try to test the emptyness of this list in on sentence but i don't know why it doesn't work : I try this : VenueGlobal( sousVenues == null || sousVenues.empty ) but I have this error : org.drools.rule