Re: [rules-users] NullPointerException when using Drools rule template

2010-11-11 Thread Wolfgang Laun
[Note: I see that template parsing is rather wobbly. The JIRA has to be fixed in org.drools.template.parser.DefaultTemplateContainer, and I think there are other "holes" in the parseTemplate method.] Roger, while my previous suggestion avoids the NPE, it may not be the adequate solution for your

Re: [rules-users] NullPointerException when using Drools rule template

2010-11-11 Thread Roger Smith
Hi Wolfgang, We were able to get the code to work based on your previous suggestions. Your following recommendation is definitely more elegant and complete. Many thanks for following up. Most grateful! Roger On Thu, Nov 11, 2010 at 12:56 AM, Wolfgang Laun wrote: > [Note: I see that template par

Re: [rules-users] Drools Human Task Service Persistence

2010-11-11 Thread ramram
Hi Salaboy, Kris I managed to do the persistence to Oracle and that is not by creating an xml file but by adding annotations to the org.drools.task file and I mean by this: for example org.drools.task.Deadline - the column name [date] reserved word for oracle. So what I did is the

[rules-users] Updating interval events

2010-11-11 Thread anais
Hello. I'm using Drools in a system of alarms. I have a drl file with rules in wich I have defined events that are java classes. I have defined timed events and interval events. My idea is that an external timer inserts some interval events time to time. Well, the thing is that I need update an

Re: [rules-users] Drools Human Task Service Persistence

2010-11-11 Thread Rui Tang
Hi, friends I'd like to add xml config to fix this this problem. Because sometimes, for different databases, we may need different mappings. E.g. we may need varchar2 in Oracle other than varchar in others. I've read some other one's note to say that it is better to define the relationship of ent

Re: [rules-users] Removing facts from statefulknowledgeSession's memory

2010-11-11 Thread Ayush
Ok so drools will not be garbage collecting the facts (as I'm not calling dispose()) and I've to retract them manually. I was wondering cannot there be any way in which I can define expiry time for facts in the same way I declare for events i.e. @expiry -- View this message in context: http://

Re: [rules-users] Help me understand this drools exception

2010-11-11 Thread murphy
You should enable the option for dump creation with: -Ddrools.dump.dir="yourDirectory" so you can take a look at the generated code (Process_com_test_sample_0.java) and maybe debug it. -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Help-me-understand-this-dr

Re: [rules-users] Removing facts from statefulknowledgeSession's memory

2010-11-11 Thread Mark Proctor
On 11/11/2010 10:46, Ayush wrote: > Ok so drools will not be garbage collecting the facts (as I'm not calling > dispose()) and I've to retract them manually. > > I was wondering cannot there be any way in which I can define expiry time > for facts in the same way I declare for events i.e. @expiry U

Re: [rules-users] Updating interval events

2010-11-11 Thread Wolfgang Laun
On 11 November 2010 11:11, anais wrote: > > Hello. > > I'm using Drools in a system of alarms.  I have a drl file with rules in > wich I have defined events that are java classes. I have defined timed > events and interval events. My idea is that an external timer inserts some > interval events ti

[rules-users] Drools Human Task Issue on Server Restart

2010-11-11 Thread ramram
Hi All, I Have an issue with Human Task in Drools. I have a simple scenario. Start --> Human Task1 ---> Human Task2 ---> Human Task3 ---> End I persisted the Task Service as well as the Human Task info to Oracle. But what is happening is that I have the Human Task1 once completed

Re: [rules-users] Updating interval events

2010-11-11 Thread Anais Martinez
Thank you very much. That's what I need to know. -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Updating-interval-events-tp1881686p1882499.html Sent from the Drools - User mailing list archive at Nabble.com. ___ r

[rules-users] drools gwt-console problems

2010-11-11 Thread melc
Hello, Can you please assist with two issues that I have related to gwt-console, 1. In gwt-console after starting a simple process with one human task (the sample process from eclipse with one human task before ending) and clicking the diagram button (as shown on the screencast http://people.red

[rules-users] accumulate vs collect

2010-11-11 Thread rouvas
Hi List, I'm trying to count the number of objects I have in the Working Memory using accumulate, but I'm having a ClassCastException thrown at me. Using a variant with collect, everything work OK. Can someone shed some light on this issue? Is it related to https://jira.jboss.org/browse/JBRULES-

Re: [rules-users] accumulate vs collect

2010-11-11 Thread Edson Tirelli
Can you show us the stack trace? What version of Drools are you using? In Drools 5.1+, collect is just syntax sugar... internally, collect is implemented using accumulate. Edson 2010/11/11 : > Hi List, > > I'm trying to count the number of objects I have in the Working Memory > using a

Re: [rules-users] accumulate vs collect

2010-11-11 Thread Wolfgang Laun
The suggested workaround (before this was fixed) is to use count(1) which achieves the same effect. -W On 11 November 2010 19:30, wrote: > Hi List, > > I'm trying to count the number of objects I have in the Working Memory > using accumulate, but I'm having a ClassCastException thrown at me.

Re: [rules-users] Loading StatefulKnowledgeSession and Session-ID-Concept

2010-11-11 Thread O.S.
Concerning the "old" unsolved question I would be happy if someone could give me an answer for these questions: 1) What's the advantage of creating StatefulKSessions with an environment? (JPA-Persistence excluded) 2) Is the session id (ksession.getId();) depending on the environment? 3) Can globa

Re: [rules-users] Removing facts from statefulknowledgeSession's memory

2010-11-11 Thread Ayush
Can you please elaborate on "Have it store each inserted object in a time based eviction queue and it'll remove things for you." i.e. how can I do it? -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Removing-facts-from-statefulknowledgeSession-s-memory-tp187