Re: [rules-users] Upload Rules to BRMS at runtime

2008-10-03 Thread Asif Akram
Hi Dave, Is it possible to share the code snippet with us. I don't have any experience of Jackrabbit and RMI. Any concrete example will be helpful. Cheers Asif David Sinclair wrote: Hi Leo, I use the Drools API to interact with the JCR with I expose over RMI. I have the security on Jac

[rules-users] Can't check if an attribute is member of an object of class class com.sample.WorkDays

2008-10-03 Thread Marcin Krol
I'm doing this: ThermostatTimeData ttd1 = new ThermostatTimeData("January", "Monday", 14); session.insert(ttd1); WorkDays wd = new WorkDays(); session.insert(wd); session.fireAllRules(); printoutThermostatData(ttd1); and then this: rule "Rule 1" when $wd : com.sample.WorkDays() $ttd :

[rules-users] Checking an xml field

2008-10-03 Thread Otaduy del Paso, Zaloa
Hi, I'm new in drools and I'm having some problems accessing an xml field. I'm using drools with jaxb to treat xml files that follow an specific xsd. I have the following xml (this is just a piece of the xml): EVENT_ID_03/10/2008 10:22:36 00 Incidente UME POL HUMDED EXTREM 8

Re: [rules-users] Can't check if an attribute is member of an object of class class com.sample.WorkDays

2008-10-03 Thread Edson Tirelli
You can only use memberOf with Collection or arrays, so you should be binding your variables to the list, instead of the class: Workdays( $wd : workDays ) []s Edson 2008/10/3 Marcin Krol <[EMAIL PROTECTED]> > > I'm doing this: > > ThermostatTimeData ttd1 = new ThermostatTimeData("Janua

Re: [rules-users] Upload Rules to BRMS at runtime

2008-10-03 Thread David Sinclair
Micheal is right in that using RMI more tightly couples you to the underlying asset object model, but it also gives you a lot of flexibility. For instance, every time our object model changes, as part of the build process, the package is created/updated to include the updated JARS, updated header s

Re: [rules-users] BRMS rule info logging

2008-10-03 Thread techluver
Thanks Michael. that gives me some idea. It think BRMS has its own tables to manage the rules(please correct if I'm wrong). 1.Can I directly make/delete rule entry in those table without using BRMS. Will BRMS identify those rules without any issues? 2. Can I reference the Ids(something rule_id)

Re: [rules-users] BRMS rule info logging

2008-10-03 Thread David Sinclair
BRMS can be setup to use a DB, but it is not a "normal" table structure. Remember that BRMS stores everything in a JCR (Java Content Repository), so it is a JCR data model, not BRMS's. I agree with Michael. Use an agenda listener to keep track of the firing of different rules. On Fri, Oct 3, 2008

Re: [rules-users] BRMS rule info logging

2008-10-03 Thread techluver
Thanks David. I would like to give more details on my requirement. Please throw your ideas for good design using drools. 1.I'll get huge amount of data in database(60 or 70 millions) daily. I would like to apply the rules on those records and store the data which satisfied the rules. So my rule e

[rules-users] can we use drools 5.0 M1 in production?

2008-10-03 Thread techluver
hello, I would like to know whether we can use drools 5.0 M1 in production or not. Thanks -- View this message in context: http://www.nabble.com/can-we-use-drools-5.0-M1-in-production--tp19804204p19804204.html Sent from the drools - user mailing list archive at Nabble.com.

[rules-users] Best Practices - using functions

2008-10-03 Thread Costello, Robert
So I'm sitting here with a need to get the day of year on a date field, and wondering if it doesn't make sense to have this on the original object. The rule would be something simple, like when thisdayofyear < thatdayofyear then dosomething() Now, if the day of year is computed on the fly with

[rules-users] RHS start ruleflow not executing associated rules

2008-10-03 Thread djouki
env: fedora5, eclipse3.3, drools4.0.7. jdk1.5 I've created a ruleflow hierarchy where the execution of a rule associated with one ruleflow starts a second ruleflow. rule "Main - Entry" ruleflow-group "checkData" when exists Root(itemReq:itemRequest) then

Re: [rules-users] BRMS rule info logging

2008-10-03 Thread David Sinclair
I would fist step back and ask the question if a rules engine is the right solution to your problem. Is this data you are getting in daily in a single table, multiple tables? How complex is the data? Is the data simple enough that rules could just be some SQL statements/Stored procs? How many rul

Re: [rules-users] BRMS rule info logging

2008-10-03 Thread Greg Barton
After this, if you determine that rules are necessary, check whether sequential mode would work. It sounds like you're getting into that territory. --- On Fri, 10/3/08, David Sinclair <[EMAIL PROTECTED]> wrote: > From: David Sinclair <[EMAIL PROTECTED]> > Subject: Re: [rules-users] BRMS rule in

Re: [rules-users] can we use drools 5.0 M1 in production?

2008-10-03 Thread Edson Tirelli
Not recommended. M2 is still a development version. 2008/10/3 techluver <[EMAIL PROTECTED]> > > hello, > I would like to know whether we can use drools 5.0 M1 in production or not. > > Thanks > -- > View this message in context: > http://www.nabble.com/can-we-use-drools-5.0-M1-in-production--t

[rules-users] Ruleflow Query

2008-10-03 Thread Sangrish
Hi I have a ruleflow having a sequence of ruleflow groups. Each group contains a few rules. Also,I have, say a 1000 objects of type A in working memory. Each rule operates on A and may change some attributes of it. I see that the ruleflow executes a rule (present in any ruleflow group in

[rules-users] Deploying Guvnor M2 in Glassfish

2008-10-03 Thread Richard Ambridge
On wednesday I logged a bug GUVNOR-19 indicating that I am unable to deploy Guvnor M2 in Glassfish application server. Since then, and with little sleep, I have been able to workaround the problem. To deploy Guvnor M2 release in glassfish, do the following. Download jboss-seam from http://he

Re: [rules-users] BRMS rule info logging

2008-10-03 Thread techluver
1.I would fist step back and ask the question if a rules engine is the right solution to your problem. - Actually I do have same question and need experts help to found out right answer. 1.Is this data you are getting in daily in a single table, multiple tables? - we want to assume that it is

RE: [rules-users] Compatibility of Rule Flows from 4.0.7 to 5.0.0

2008-10-03 Thread Nimesh Muley
Hi, I have attached a file for translating rule flows from 4.0 to 5.0. I have tested my flows with the XSL and it works fine. However, the XSLT may not be quite slick or compact as I have touched upon XSLT after a long time. I have covered all the nodes available (ruleSet, start, end, join, spl