Re: [rules-users] Dynamic updates of stateful sessions

2011-04-20 Thread Wolfgang Laun
2011/4/20 Esteban Aliverti > @Wolfgang, maybe I need to update the documentation to explicitly inform > about this behavior :). Please do. > The agent doesn't make anything special to sync the sessions with the > kbase. If you add a rule by hand to an existing kbase, all the session from > th

Re: [rules-users] drools flow persistence doesn't work with spring jta - bug/TODO code in SingleSessionCommandService#initTransactionManager

2011-04-20 Thread gs76pl
hi, i've created a simple project that fails/succeeds base on the passed transaction manager. See my comments in the test. http://drools.46999.n3.nabble.com/file/n2843407/droolsflow-bugs.zip droolsflow-bugs.zip i'd appreciate if anyone had a look on this issue -- View this message in context:

Re: [rules-users] Strange intermittent problem with Drools Flow

2011-04-20 Thread Mauricio Salatino
Hi Dan, did you manage to get it working? I didn't have time to look at your problem yet. I'm having very complicated times, but I'm looking forward to have at least one day to fix that issue. Can you update me your situation right now? On Wed, Apr 20, 2011 at 1:26 PM, Dan Nathanson wrote: > Bump

Re: [rules-users] Strange intermittent problem with Drools Flow

2011-04-20 Thread Dan Nathanson
Bump Regards, Dan Nathanson On Mon, Apr 11, 2011 at 4:37 PM, Dan Nathanson wrote: > Hi Mauricio, > > This is now happening intermittently for another user and a couple of > times on our build machine.  I have never seen it happen on my > machine.  This will be a show-stopper for us if we can

Re: [rules-users] Dynamic updates of stateful sessions

2011-04-20 Thread Esteban Aliverti
@Wolfgang, maybe I need to update the documentation to explicitly inform about this behavior :). The agent doesn't make anything special to sync the sessions with the kbase. If you add a rule by hand to an existing kbase, all the session from this kbase will automatically detect the changes. Now I'

Re: [rules-users] Dynamic updates of stateful sessions

2011-04-20 Thread Wolfgang Laun
2011/4/20 Esteban Aliverti > @Wolfgang: if you are using drools.agent.newInstance=true (the default > configuration), then whenever a change-set is applied, either because you > explicitly force the agent to do so, or because a monitored resource > changes, the kbase inside the agent is thrown a

Re: [rules-users] [guvnor] How to use a rule in a java application

2011-04-20 Thread Mario Viertel
Hi Mike, thanks for the information. No, I didn't know the Expert documentation. Regards, Mario Am 20.04.2011 14:09, schrieb Michael Anstis: > Hi, > > Guvnor is an authoring and repository environment not a runtime environment. > > Please read about KnowledgeBuilder and its related "addResource

Re: [rules-users] drools flow persistence doesn't work with spring jta - bug/TODO code in SingleSessionCommandService#initTransactionManager

2011-04-20 Thread Mauricio Salatino
As far as I remember, there was a problem with spring and JTA XA implementation. Can you provide us a simple test case that fails? we can create a jira issue and work on it easily if we have that. Greetings. On Wed, Apr 20, 2011 at 11:57 AM, gs76pl wrote: > hi, > > i've been trying to setup my d

Re: [rules-users] Dynamic updates of stateful sessions

2011-04-20 Thread Esteban Aliverti
@Wolfgang: if you are using drools.agent.newInstance=true (the default configuration), then whenever a change-set is applied, either because you explicitly force the agent to do so, or because a monitored resource changes, the kbase inside the agent is thrown away an a new kbase is created. So you

[rules-users] drools flow persistence doesn't work with spring jta - bug/TODO code in SingleSessionCommandService#initTransactionManager

2011-04-20 Thread gs76pl
hi, i've been trying to setup my drools flow persistence layer to use spring transaction management (JTA) but it looks like some parts of the code are missing in 5.1.1 rendering the whole idea impossible. Whats happening is that when my transaction manager calls commit it gets NullPointerExceptio

Re: [rules-users] Dynamic updates of stateful sessions

2011-04-20 Thread maav
...I forgot the mention that I've made sure that all files are on the classpath. If I go directly for the drl file without using KnowledgeAgent and ChangeSet.xml it works. -- View this message in context: http://drools.46999.n3.nabble.com/Dynamic-updates-of-stateful-sessions-tp2834623p2842915.htm

Re: [rules-users] Dynamic updates of stateful sessions

2011-04-20 Thread maav
Hi, again! the problem was that I didn't actually ever use the KnowledgeAgentConfiguration... so no wonder it didn't work... But now I have another problem that I just can't get my head around instead. this is the ChangeSet.xml I'm using: And it works just fine. But if I re

Re: [rules-users] [guvnor] How to use a rule in a java application

2011-04-20 Thread Michael Anstis
Hi, Guvnor is an authoring and repository environment not a runtime environment. Please read about KnowledgeBuilder and its related "addResource" methods together with the ResourceType.PKG. You can also look at using KnowledgeAgent but for now an understanding of KnowledgeBuilder will suffice. I

[rules-users] [guvnor] How to use a rule in a java application

2011-04-20 Thread Mario Viertel
Hi all, I am new in Guvnor and have a lot of questions. I have created a decision table with the Guvnor web app. I have also created some test. All seems to be fine. Now I want to use the rules in a web application. Unfortunately Guvnor doesn't provide a web service interface so I must develop

Re: [rules-users] compilation error - Import statements are colliding

2011-04-20 Thread David Faulkner
I believe that you can only import one class with the same name, regardless of package. To access the other class within your code, you will need to refer to it every time with the fully qualified class name. This conforms to the behavior of Java source files. On 4/20/11 11:38 AM, "Boban Abraham"

[rules-users] compilation error - Import statements are colliding

2011-04-20 Thread Boban Abraham
Hi, We have scenario in which the imported java classes have same name but different package. The drools guvnor is throwing compilation error stating that import statements are colliding, even though the java class packages are different. Please let me know if there are any solutions for this i

Re: [rules-users] First Order Logic - METHODS in Drools

2011-04-20 Thread Wolfgang Laun
On 20 April 2011 11:17, Arjun Dhar wrote: > > The reason why i started this thread was to ensure in the process of Rule > engineering, I could write optimal rules in mathematical notion and not > have > to worry about technical differences in how a Predicate is translated while > translation to d

Re: [rules-users] First Order Logic - METHODS in Drools

2011-04-20 Thread Arjun Dhar
ok thanks, i think i confused my notion of eval() with also its ability to return int on calculations in some other framework. The reason why i started this thread was to ensure in the process of Rule engineering, I could write optimal rules in mathematical notion and not have to worry about techn

Re: [rules-users] First Order Logic - METHODS in Drools

2011-04-20 Thread Wolfgang Laun
It would help if you read the documentation which explains that eval() must return a boolean. "Predicate" is a mathematical concept; how it is implemented in some system is a technical issue. That said, "predicates" can be expressed in Drools one way or other, and some predicates may be more effic

Re: [rules-users] First Order Logic - METHODS in Drools

2011-04-20 Thread Arjun Dhar
I believe eval() solves that purpose functionally but is not optimal; not sure how evals() tie in with Rete-OO Specially since the return type of eval() is not known, I can seriously doubt it being optimal as using Objects directly in conditions. - Software documentation is like sex: If its go

Re: [rules-users] First Order Logic - METHODS in Drools

2011-04-20 Thread Swindells, Thomas
I thought wrapping a method in a eval statement is effectively allowing you to use methods directly, it is syntactic sugar to say this is a method call, evaluate it and then use the result in the rete graph. >From what I understand the problem with methods is drools has to assume that >the meth

Re: [rules-users] Encrypt password in repository.xml

2011-04-20 Thread David Faulkner
Boban, Instead of using an explicit JDBC connection string, you can instead find your MySQL connection via a JNDI lookup, externalizing your database connection information to your application server. You'll have to Google the exact details, but I believe you set the driver class to "javax.naming.