RE: [rules-users] newbie - dynamic rules in java and db design

2008-10-09 Thread Vikrant Yagnick
Drools can be written in XML as well as normal DRL. The XML method of writing Drools is friendlier for GUI's. My suggestion, was that instead of creating your own XML language for storing Rules, you could maybe re-use the existing XML language provided by Drools and use the default rule parsing

[rules-users] any event call while adding/removing rules from Guvnor

2008-10-09 Thread drools newbie
Hello, I would like to store rule entry in my database while using Guvnor. So whenever any rule is added/removed from Guvnor, I want to add/remove the same from database table. Is this possible? Is there any event handler called in Guvnor while adding/removing rules? Please clarify. Thanks. -- V

RE: [rules-users] newbie - dynamic rules in java and db design

2008-10-09 Thread drools newbie
Hello Vikrant, Sometime ago, you replied to my question as given below. I don't get this statement. "For the GUI, you could use XML rather than create your own language and let drools compile things automatically. ". can you please elaborate? "4. I think rules can be written in java or drools na

RE: [rules-users] RE: fact base storage?

2008-10-09 Thread Greg Barton
Nope. See the StatefulSession.async* and StatelessSession.async* methods. They are threadsafe. --- On Thu, 10/9/08, Evans, Jess <[EMAIL PROTECTED]> wrote: > From: Evans, Jess <[EMAIL PROTECTED]> > Subject: RE: [rules-users] RE: fact base storage? > To: [EMAIL PROTECTED], "Rules Users List" >

[rules-users] No globals in functions?

2008-10-09 Thread Bagwell, Allen F
There's probably an easy explanation for this. I was wondering about why functions inside of rule files can't access globals? For example, I have a log4j logger that I pass into my rule files via a global. The logger should never be a part of working memory. It's just there to capture valuabl

RE: [rules-users] RE: fact base storage?

2008-10-09 Thread Evans, Jess
Thanks. That's the plan. However, my assumption is that even if the data model and rules support partitioning that you still need to synchronize calls to working memory so that two threads aren't invoking insert, fire*, retract, etc. at the same time. -Original Message- From: [EMAIL PROT

RE: [rules-users] RE: fact base storage?

2008-10-09 Thread Greg Barton
That model sounds quite reasonable. You may also find it useful to partition your rules by user by having them match on a User object of some kind and user state that matches up with each User. rule when $u : User(); UserState(user == $u); ImmutableFact1(...) ImmutableFact2(...) then

RE: [rules-users] RE: fact base storage?

2008-10-09 Thread Evans, Jess
Thanks for the confirmation. I think it should be straightforward to implement a parser as you suggest to populate a list of java beans and assert them to the working memory. I'm just surprised that this doesn't already exist. May I ask how you manage the working memory? It looks like you can'

[rules-users] RE: fact base storage?

2008-10-09 Thread Vikrant Yagnick
Hi Jess, I am facing the same problem right now. While, I do not know of any OOTB ways to do this, I initially implemented an all rule solution. In my case, I had a lookup table that based on a age or gender got a rate or some value. Using some Excel Trickery, I got the 2 dimensional table into

[rules-users] fact base storage?

2008-10-09 Thread Evans, Jess
I'm trying to come up to speed on the drools capabilities. I see that drools supports loading rules from a decision table in a spreadsheet. I have a set of conversion tables that I'd like to represent as facts asserted when the rule base has been loaded, but before processing user requests. I co

[rules-users] Sharing packages among rulebases in JEE app

2008-10-09 Thread seemamani
Will there be any issue if we use the same package in multiple rulebases? I saw a comment in one of the posts which states - "Just make sure the only thing you eventually share among threads is the rulebase. Do not share session or packages among threads." http://www.nabble.com/Multithreading-Rule

[rules-users] BRMS and JCR over JNDI

2008-10-09 Thread Blanco Emanuele
Hi there, I'm in need to modify the Drools BRMS to use a JCR exposed over JNDI. I successfully deployed Jackrabbit over JNDI (I can access it via an EJB and making a context.lookup()), but I can't get it to work in JBRMS. I modified the BRMSRepositoryConfiguration.create() to instantiate a cont

[rules-users] Fwd: Special Journal Issue IEEE TKDE: Call for Contributions

2008-10-09 Thread paschke
Dear Colleagues, Please consider to participate in RuleML-2008 (http://2008.ruleml.org/) which will be in about 3 weeks in Orlando, Florida, collocated with the world largest Business Rules Forum. We have a very interesting program with renowned speakers, a prestigious rules Challenge, a special