[rules-users] Re: NullPointerException in SessionConfiguration

2009-03-27 Thread Jared Davis
Jared Davis davisprogramming.com> writes: > > Any advice on this NPE? (March 20th snapshot of 5.00) > > It occurs when a second thread attempts to create a session using a static > KnowledgeBase. > > java.lang.NullPointerException > at org.drools.SessionConfiguration.initProcessInstanceManage

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

2009-03-27 Thread a...@work
Thx. Figured that part and I did that in the source code of the execution server on a particular XML value coming from client. I suppose now I have to put hibernate in Guvnor's classpath, declare a global variable in the package configuration and then use it in a rule. One thing I cannot figur

[rules-users] NullPointerException in SessionConfiguration

2009-03-27 Thread Jared Davis
Any advice on this NPE? (March 20th snapshot of 5.00) It occurs when a second thread attempts to create a session using a static KnowledgeBase. java.lang.NullPointerException at org.drools.SessionConfiguration.initProcessInstanceManagerFactory (SessionConfiguration.java:260) at org.drools.Sessio

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

2009-03-27 Thread Wolfgang Laun
On Fri, Mar 27, 2009 at 7:23 PM, Greg Barton wrote: > > I'm not sure about the rationale of the Drools devs, but I can give an > example of that design pattern from another rules package. > > At my workplace (Southwest Airlines) we use Tibco BusinesEvents, and BE has > the concept of Channels wit

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

2009-03-27 Thread Mark Proctor
Wolfgang Laun wrote: Where would I find information about the rationale of having multiple named WM entry points? Only the release notes. It's related mostly to CEP so that you can have dedicated partitions for an input stream, to avoid bottle necks, they are also multi-threaded, if you turn on

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

2009-03-27 Thread Greg Barton
I'm not sure about the rationale of the Drools devs, but I can give an example of that design pattern from another rules package. At my workplace (Southwest Airlines) we use Tibco BusinesEvents, and BE has the concept of Channels with Destinations that produce Events. A Channel can be mapped

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

2009-03-27 Thread Mark Proctor
Earnest Dyke wrote: Could you do the same thing with an entity manager? of course, drools doesn't know what these things are - it's just a black box expression and it processes the results. Mark Earnie! *From:* Mark Pr

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

2009-03-27 Thread Earnest Dyke
Could you do the same thing with an entity manager? Earnie! From: Mark Proctor To: Rules Users List Sent: Friday, March 27, 2009 2:09:19 PM Subject: Re: [rules-users] Guvnor and 'from' database a...@work wrote: > I am trying to use drools to evaluate the fol

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

2009-03-27 Thread Mark Proctor
a...@work wrote: I am trying to use drools to evaluate the following rule: Given a telephone number, if the telephone number already exists in database and has a balance > 0, set isAllowed = false. Looking at forum posts I understand that this can be achieved using hibernate and 'from' keywor

[rules-users] Guvnor and 'from' database

2009-03-27 Thread a...@work
I am trying to use drools to evaluate the following rule: Given a telephone number, if the telephone number already exists in database and has a balance > 0, set isAllowed = false. Looking at forum posts I understand that this can be achieved using hibernate and 'from' keyword. However, this is

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

2009-03-27 Thread Wolfgang Laun
Where would I find information about the rationale of having multiple named WM entry points? Thanks -W ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules-users

Re: [rules-users] Drools Fusion Example - java.lang.IllegalArgumentException: stream cannot be null

2009-03-27 Thread Edson Tirelli
The broker example is work in progress and requires documentation. It is composed of 3 parts. The first step is that you need to use the event generator to create a source data file with the data for the events in the stream. Then you need to use this data file to feed events into the appli

Re: [rules-users] Guvnor guided rule and nested objects

2009-03-27 Thread Héron Nicolas
Hello, for the first rule, the Jira is https://jira.jboss.org/jira/browse/JBRULES-1929 and you have to wait that my patch is applied and you will be able to do all you want look at https://jira.jboss.org/jira/secure/attachment/12325575/FinalModification.jpg for the second part of you question, di

Re: [rules-users] JBoss Rules as a Daemon Service

2009-03-27 Thread ober0n
I apologize for digging up an old topic but wanted to make sure if this was true or not for both the GA and Fusion releases before I go off and start writing my own Drools-as-a-service code. In other words, I'd like to use drools as a daemon, running constantly, waiting to accept events to correla