[rules-users] Define global varibales to several drl files

2010-01-26 Thread orchid
Hi, I would like to ask if it possible to define a global variables which can be accessed from rules which are defined in several drl files? My idea behind this is to hold some structure (array for example) which will hold the results of all rules. The rules are defined in several files. All

[rules-users] KnowledgeAgent and Guvnor restart

2010-01-26 Thread Gerret Hansper
Hello, I have got an issue with the KnowledgeAgent that seems not to survive a Guvnor restart. The scenario is as follows: * We use Drools 5.0 * On our application server we create a KnowledgeAgent applying a ChangeSet that points to a package binary on a separate Guvnor server like so:

Re: [rules-users] infinite loop in decision table

2010-01-26 Thread djb
Hi Thomas, I implemented the latch system as you suggested, but came to a problem when running batches of data. Since the latch is set when the rule fires, you can't have that rule fire for more than one piece of data. So, with this method, for batch processing, you need to include a UUID into

[rules-users] Is it possible to restore StatefulKnowledgeSession?

2010-01-26 Thread Grigoriev, Grigoriy
Hi everyone, I have a ruleflow that calls a ruleflow group. In rhs of one of the rules in the ruleflow group an Exception is thrown. After that, when I insert a new fact into the working memory, the activations for the new fact are not created. To make the session work again, I call

Re: [rules-users] infinite loop in decision table

2010-01-26 Thread Swindells, Thomas
As I see it you have a number of options, As you have said you could scope your latches so that they only apply to a particular object, rather than generating a UUID you can probably get away with using the object reference itself; however you will also need to watch out for memory leaks, this

Re: [rules-users] ConsequenceException when retract from entry point

2010-01-26 Thread jschmied
solved: rule test 3 when $t : My_Type() from entry-point NM then retract($t) // -- now without referencing the entry-point end -- View this message in context: http://n3.nabble.com/ConsequenceException-when-retract-from-entry-point-tp136290p139191.html Sent from

Re: [rules-users] Define global varibales to several drl files

2010-01-26 Thread orchid
Can someone help me please with this question? -- View this message in context: http://n3.nabble.com/Define-global-varibales-to-several-drl-files-tp138974p139254.html Sent from the Drools - User mailing list archive at Nabble.com. ___ rules-users

[rules-users] KnowledgeAgent and Guvnor restart

2010-01-26 Thread Gerret Hansper
Hello, I have got an issue with the KnowledgeAgent that seems not to survive a Guvnor restart. The scenario is as follows: * We use Drools 5.0 * On our application server we create a KnowledgeAgent applying a ChangeSet that points to a package binary on a separate Guvnor server like so:

[rules-users] KnowledgeAgent doesn't load dsl files and dslr file from a change-set correctly

2010-01-26 Thread Pritham
I have a folder in classpath: dsl/global.dsl rules/section-A.dslr rules/section-A/page-1.dslr I create a knowledge base like this: public KnowledgeBase createKnowledgeBase() throws DroolsParserException, IOException { KnowledgeBuilder knowledgeBuilder = KnowledgeBuilderFactory

Re: [rules-users] KnowledgeAgent doesn't load dsl files and dslr file from a change-set correctly

2010-01-26 Thread Steve Ronderos
Pritham, I've experienced this issue before as well. It has to do with the way that the KnowledgeAgent subscribes to resources. I believe behind the scenes the resources are loaded in an arbitrary order. There is a JIRA bug report already filed:

Re: [rules-users] KnowledgeAgent doesn't load dsl files and dslr file from a change-set correctly

2010-01-26 Thread Pegram, Macon
That's actually my ticket, and I've been hoping to get it resolved for awhile now. I've posted to this mailing list as well as the actual ticket but haven't heard responses from anyone. I've recently done more research into the issue, and have some updated information that needs to be

Re: [rules-users] KnowledgeAgent doesn't load dsl files and dslr file from a change-set correctly

2010-01-26 Thread Pritham
Thanks for the heads up. I can even load the same change-set.xml via kbuilder and get the rules to fire and work, turns out that KnowledgeAgent has an issue. On a larger note, looking at 5.1M1, KnowledgeAgentImpl has changed a lot (Mark Proctor) and a lot of todos and comments were uncommented

Re: [rules-users] Stateless Vs Stateful Sessions in Webtier

2010-01-26 Thread Pritham
I'm planning to use the following approach in my webtier: High level design: Each http request for a page on our site has an average of 5 separate requests to process rules before finally rendering. Each time, servlet handler calls runRule(some context object). Essentially, rules is serving as a

Re: [rules-users] Drools Roadmap - Planned Release 5.1 release date

2010-01-26 Thread Pritham
It's been 6 months since this post and only Milestone 1 has been released. Any idea when 5.1 final is being panned for? The noteworthyfeatures, fixes, spring integration and others look interesting. -- View this message in context:

[rules-users] Does rule execution block when the Knowlege Agent is rebuild KnowlegeBase???

2010-01-26 Thread Wing
Hello Drools User, I am using Knowlege Agent to monitor changes in the repository. I have started the following services: ResourceFactory.getResourceChangeNotifierService().start(); ResourceFactory.getResourceChangeScannerService().start(); I was able to change the rules in the repository and

Re: [rules-users] KnowledgeAgent doesn't load dsl files and dslr file from a change-set correctly

2010-01-26 Thread Pegram, Macon
I did my trace (which led to the comments below) on 5.1M1, but the I noticed the problem originally on 5.0.1 so I don't believe there's any version that will work for you at this time. Macon -Original Message- From: rules-users-boun...@lists.jboss.org

Re: [rules-users] KnowledgeAgent doesn't load dsl files and dslr file from a change-set correctly - JIRA:JBRULES-2377 updated

2010-01-26 Thread Pegram, Macon
I have updated the JIRA ticket with more detailed information. If this issue is important to you, please vote up its importance so that we can hopefully capture the attention of the development team. You can find the JIRA ticket at: https://jira.jboss.org/jira/browse/JBRULES-2377 Thanks!