[rules-users] stack overflow in work items

2009-03-30 Thread Garrett Conaty
My scenario is a rule that is firing over a collection. For each item in that collection a ruleflow starts to handle it. Right now the ruleflow just uses the log workitem to log the steps. When there are ~600 items in the collection I'm getting stack overflows. Granted the processes

[rules-users] How to write below rule using Guvnor ( Invoice and Line Item scenario )

2009-03-30 Thread Ashish Soni
Hi All , I am trying to write below rule in Guvnor Guided Editor but not able to do so , Any help or suggestion will be appreciated - Let say i have a Invoice Object which contains collection of Line Items Class Invoice { private Collection lineItems; } Class LineItem { private double gr

Re: [rules-users] Trying to get Sliding Windows to work

2009-03-30 Thread ober0n
Hi Ed, thanks for the quick reply, I will try the temporal constraints as well. I haven't completed my testing yet but the sliding windows seems to be working. Thanks! I am getting a strange problem of my program hanging. It gets all the way past my "dispose()" of the StatefulKnowledgeSession

Re: [rules-users] Trying to get Sliding Windows to work

2009-03-30 Thread Edson Tirelli
Although your rule should work, the best way to write your rule would be using temporal constraints instead of sliding windows: rule "Goodbye before Hello World" when $m : Message( status == Message.HELLO ) exists( Message( status == Message.GOODBYE, this b

Re: [rules-users] Trying to get Sliding Windows to work

2009-03-30 Thread ober0n
Hi Ed, no need to apologize, you have been invaluable in my first steps towards Drooling :-D so thanks for all your help, it is GREATLY appreciated :clap:. We have a few scenarios in mind but aren't really implementing them yet, just trying to see if sliding windows works the way we think it does

Re: [rules-users] Trying to get Sliding Windows to work

2009-03-30 Thread Edson Tirelli
Ober0n, Sorry for the delay on answering. I am on a trip with limited internet connection. I am interested in your experience with the sliding windows, since the tests are working. Maybe it is a scenario not covered by the tests. In any case, what is probably happening is that you are

Re: [rules-users] org.drools.runtime.rule.WorkingMemoryEntryPoint

2009-03-30 Thread Edson Tirelli
Hi Wolfgang, The answers so far were all correct. Just to add a bit more, try this: https://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-fusion/html/ch02.html#d0e520 Feedback most welcome. Also, going on into the internals, as Mark men

RE: [rules-users] How to use Drool Inference instead of SQL's

2009-03-30 Thread Anstis, Michael (M.)
This might be of interest http://www.jboss.org/community/docs/DOC-11909 -Original Message- From: rules-users-boun...@lists.jboss.org [mailto:rules-users-boun...@lists.jboss.org] On Behalf Of JohnSood Sent: 30 March 2009 13:20 To: rules-users@lists.jboss.org Subject: [rules-users] How to u

RE: [rules-users] Facing severe issues while using Persistence

2009-03-30 Thread Anstis, Michael (M.)
This looks like a JPA issue; have you configured your PersistenceUnit? I haven't used EclipseLink but in other IDE's you can create a PU graphically. There's always persistence.xml to fall back to as well. Looks like EclipseLink can't find a PU definition.

[rules-users] How to use Drool Inference instead of SQL's

2009-03-30 Thread JohnSood
Hi, I am in process of development of an application that uses the DRools 4.0.7 and fires the rules based data returned by some SQL statements. The problem is when we use SQL functions like MAX(), AVG(), SUM() etc. then providing facts to the rule engine is easy and DIRECT as these functions ret

RE: [rules-users] Facing severe issues while using Persistence

2009-03-30 Thread Umesh Wankhede
Hi Kris Thanks for the clues. But I have bigger problems when I try to use the persistence with Oracle and EclipseLink(because of project requirements). I have mentioned in the below mail about the problems faced while migrating from H2 to Oracle. After fixing these (Oracle with Hibernate) iss

Re: [rules-users] build Drools packages

2009-03-30 Thread Wolfgang Laun
I don't know whether this is the "better (than rule templates) generic way" you are hinting at, but I've been extending the template mechanism with a feature permitting expansion from objects - maps or bean-style. This means that you can take a rule template file and instantiate its rule(s) from a

[rules-users] build Drools packages

2009-03-30 Thread Meny Kobel
Hi, Could you please advice which is the best way to build Drools packages? I need to read the rules from database and I have to build drools packages. The content of the rules is very flexible : 1. I don't know the number of rules. 2. I don't know rule data: the type name, operation and value. 3.

Re: [rules-users] Guvnor and 'from' database

2009-03-30 Thread Nestor Tarin Burriel
Hi, As I understand, you dont need to put any hibernate class in guvnor. Just try that: Implement a global class in your rule engine(not guvnor) with a method that uses hibernate (for example getEntity(EntityName, Id)), then load the engine in the same scenario as guvnor (JBOSS) and add a global