[rules-users] Does anyone have a working Hibernate + Bitronix + Tomcat configuration

2010-08-27 Thread Gustavo Tenrreiro
Hi, Does anyone have a working Hibernate + Bitronix + Tomcat configuration which works with Drools process persistence ? If so can you share it? In my case Hibernate just does not find the Datasource, no matter what I do. Thanks ___ rules-users mailin

Re: [rules-users] Drools 5.1 - exception when trying to use incremental KB updates.

2010-08-27 Thread Esteban Aliverti
This is strange. Could you isolate this behavior in a unit test? Best, Esteban Aliverti - Developer @ http://www.plugtree.com - Blog @ http://ilesteban.wordpress.com On Thu, Aug 12, 2010 at 12:22 PM, Stephen Mcgruer wrote: > Just moved to Drools 5.1, u

Re: [rules-users] Template bug on "package" keyword

2010-08-27 Thread drdaveg
I believe I tried this and having multiple package statements - even for the same package - in a file generates a different error. However, the example does list the package as optional - which if it were would also work. Thanks! -- View this message in context: http://drools-java-rules-engine

Re: [rules-users] Drools Guvnor: Rule fires multiple times when using eval and OR

2010-08-27 Thread Wolfgang Laun
2010/8/27 Patricia Bogoevici > Thx for your answer, Wolfgang. > > While your advice makes sense, it does not help me. I cannot avoid using > OR. I use Drools for validation and I have some cases when I need to use OR > between conditions for evaluating an invalid state. Well, I just wrote a sub

Re: [rules-users] Drools Guvnor: DSL with multiple fact fields conditions using "-" and eval

2010-08-27 Thread Wolfgang Laun
DSL uses regular expression parsing, but the LHS is recursive. (Chomsky type-3 vs. type-2, if you want the comp. sci. background.) This means that using DSL restricts you to a subset of the LHS language, although you may map arbitrarily complex LHS expressions to a single DSL sentence. (In your ca

[rules-users] Hibernate + Bitronix + Tomcat working configuration

2010-08-27 Thread Gustavo Tenrreiro
Hi, Does anyone have a working Hibernate + Bitronix + Tomcat configuration which works with Drools process persistence ? If so can you share it? In my case Hibernate just does not find the Datasource, no matter what I do. Thanks ___ rules-users mailin

Re: [rules-users] Template bug on "package" keyword

2010-08-27 Thread Wolfgang Laun
You can't be much worse off if you add "package foo" to the template. Or is there a problem with this obvious workaround? -W On 27 August 2010 18:25, drdaveg wrote: > > I am trying to incorporate several templates in a single output drl file. > According to the 5.0.1 docs "package" is optional:

Re: [rules-users] Drools Guvnor: DSL with multiple fact fields conditions using "-" and eval

2010-08-27 Thread Patricia Bogoevici
Thx for your answer, Wolfgang. To be honest, when I first ran into this, I was in doubt whether that is a parsing error in Drools (orĀ  mvel)? Or is an error that I got into because of how I constructed the DSL expression? It seems that it is an error in Drools and I wonder if that should be repo

[rules-users] Rewind Drools Flow

2010-08-27 Thread jawa
Hi, Is there anyway we can rewind the drools flow? I mean I save my flow in db and at a later stage I want to rewind it and start it from some other node instead of the one it was paused at. Has anyone tried this kind of thing before? I've got Human Tasks in my flow and my flow stops at one of t

Re: [rules-users] Drools and Java EE

2010-08-27 Thread ljnelson
On Fri, Aug 27, 2010 at 11:50 AM, Andrew Waterman-2 [via Drools - Java Rules Engine] wrote: > Thanks Laird, I wasn't sure if the property was for the file path or the > classpath. Ah! Gotcha. Yep, classpath. I developed this resource adapter for use inside an ear file. I would be interested

[rules-users] OptionalDataException reading compiled Packages

2010-08-27 Thread Manish Shah
Not sure what happened with this post yesterday, another chain got started with it, so trying again. I have the application setup where the drl is generated from the database and then written to the file system. So far i have been working with the drl's without any problems but have run into issu

Re: [rules-users] Drools Guvnor: Rule fires multiple times when using eval and OR

2010-08-27 Thread Patricia Bogoevici
Thx for your answer, Wolfgang. While your advice makes sense, it does not help me. I cannot avoid using OR. I use Drools for validation and I have some cases when I need to use OR between conditions for evaluating an invalid state. Also, the solution you proposed works fine when the rule works

Re: [rules-users] Is transaction management required for Drools process / session persistence

2010-08-27 Thread Gustavo Tenrreiro
Hi Greg, I am attaching: persistence.xml hibernate_processInstanceDS.cfg.xml META-INF/context.xml conf/context.xml resources.properties btm-config.properties and I have this in the web.xml jdbc/processInstanceDS javax.sql.DataSource I appreciate your help Thanks On Fri, Aug 27

Re: [rules-users] Drools v5.1.0 KnowledgeAgent using Spring Beans

2010-08-27 Thread Esteban Aliverti
Hi, I have implemented the requested feature. Please try to check if the solution works for you so I can close the issue. For further information about the usage of this feature, please take a look at the comment I have added in the jira issue. Best, Est

Re: [rules-users] Drools and Java EE

2010-08-27 Thread Andrew Waterman
Thanks Laird, I wasn't sure if the property was for the file path or the classpath. best, A On Aug 26, 2010, at 5:06 PM, ljnelson wrote: > On Thu, Aug 26, 2010 at 4:48 PM, Andrew Waterman-2 [via Drools - Java > Rules Engine] <[hidden email]> wrote: > > > > Okay, cool. So where's the magic

[rules-users] Template bug on "package" keyword

2010-08-27 Thread drdaveg
I am trying to incorporate several templates in a single output drl file. According to the 5.0.1 docs "package" is optional: Example 5.3. Rule template file: templates template header parameter-name-1 ... parameter-name-n package ... # optional However, it seems that the drools parser uses "pac

Re: [rules-users] Purpose of field "Object" in DSL pattern definition?

2010-08-27 Thread Edson Tirelli
Wolfgang, That was a contribution from a community user a long time ago whose purpose is only to group the statements per "object" on the tooling, like the guided editor. It has no runtime semantics. Edson 2010/8/27 Wolfgang Laun > A DSL definition may have an "Object" entry which

Re: [rules-users] Is transaction management required for Drools process / session persistence

2010-08-27 Thread Chrystall, Greg
Yes you do need transaction management. How is your datasource configured in hibernate? Are you using jndi? This may help: http://docs.codehaus.org/display/BTM/Jndi13 The bit you want is this: You just have to create a jndi.properties file in your classpath with this content: java.naming.fa

[rules-users] Is transaction management required for Drools process / session persistence

2010-08-27 Thread Gustavo Tenrreiro
Hi, I am trying to do Drools persistence in Tomcat with Hibernate, but it would seem it also requires transaction management. Is that true? In the meantime I tried to setup Bittronix to provide the transaction management, but I can't get Hibernate to find the datasource at all. I ve followed the

Re: [rules-users] Database problem

2010-08-27 Thread paulB
We were faced with the same issue. Eventually, I realized that we did not need to have all the data in working memory at once. I was able to break down the use of the rules engine into smaller logical chunks. I now have a stateless session that the facts at hand "fly through" the engine on dema

[rules-users] Purpose of field "Object" in DSL pattern definition?

2010-08-27 Thread Wolfgang Laun
A DSL definition may have an "Object" entry which shows up in the second pair of brackets, e.g. [condition][object]Blah=Blah() What is the purpose? None of the .dsl files in the 5.1 source has it filled in. -W ___ rules-users mailing list rules-users@l

Re: [rules-users] comparing an intersection of sets..

2010-08-27 Thread Wolfgang Laun
Below is the full story of "How I Implemented My First Custom Operator in Drools". (I gladly admit that I stole much of the code from the implementations of Drools' own operators, and that I still do not understand all the subtleties, especially why a negated operator has to be implemented all over

Re: [rules-users] temporal operator workaround

2010-08-27 Thread Wolfgang Laun
You can create another event, in parallel to the TestEvent to be monitored, with a timestamp derived from the external definition. The rule uses the TestEvent and the sentinel event to check, with "after'" for the TestEvent and "before" with the sentinel. -W On 27 August 2010 11:03, Tobias Salzbr

[rules-users] temporal operator workaround

2010-08-27 Thread Tobias Salzbrunn
Hi, I want to fomulate in the LHS something like: after an event happened another event of this kind did not happen for a specified time (somewhere externally defined). Unfortunatly, the obvious solution with the temporal operator 'after':

Re: [rules-users] Drools Guvnor: Rule fires multiple times when using eval and OR

2010-08-27 Thread Wolfgang Laun
My advice is: Try to avoid the Conditional Element "or". From the "Expert" manual: "The engine actually has no understanding of the Conditional Element 'or',..." So, if the engine doesn't "understand" it, how can we? ;-) More seriously now, there is general consent that a CE "or" should ultimately

Re: [rules-users] Drools v5.1.0 KnowledgeAgent using Spring Beans

2010-08-27 Thread KiranP
thanks esteban, i will work it out . BTW, i have added the issue to jira https://jira.jboss.org/browse/JBRULES-2678 https://jira.jboss.org/browse/JBRULES-2678 - Keep Working >> KiranP -- View this message in context: http://drools-java-rules-engine.46999.n3.nabble.com/Drools-v5-1-