[rules-users] Which is the latest version of drl format

2008-03-10 Thread anishanc
Hello friends.. Can any one know which is the latest version of the drl file format, As I know there are 3 format they are given below. 1, Plain drl file format example : when then ………

Re: [rules-users] How to create "dslr" file in Eclipse

2008-03-10 Thread SB.Raghavendra
Thank you Kris... On 3/10/08, Kris Verlaenen <[EMAIL PROTECTED]> wrote: > > When creating a drl file using the wizard, check the "Use a DSL" > checkbox. > The wizard should now create a .dslr file. > > Kris > > > - Original Message - > *From:* SB.Raghavendra <[EMAIL PROTECTED]> > *To:* R

Re: [rules-users] How to create "dslr" file in Eclipse

2008-03-10 Thread Kris Verlaenen
When creating a drl file using the wizard, check the "Use a DSL" checkbox. The wizard should now create a .dslr file. Kris - Original Message - From: SB.Raghavendra To: Rules Users List Sent: Tuesday, March 11, 2008 1:28 AM Subject: [rules-users] How to create "dslr" file in

Re: [rules-users] How to use Eclipse Rule Project in BRMS

2008-03-10 Thread Mark Proctor
you can't, already said we have no eclipse integration/interoprability. The XML is simply the BRMS dump/load data. Mark SB.Raghavendra wrote: In BRMS Admin section,we have the option called "import from XML".How to make XML file such that Eclipse Rule project should be imported into BRMS usin

[rules-users] How to create "dslr" file in Eclipse

2008-03-10 Thread SB.Raghavendra
Hi All, I am able to create files with .drl and .dsl extensions in Eclipse with Drools version 4.0.But iam not able to create the rule file with".dslr".Could anybody let me know how to create the same? (With out renaming the created .drl file with .dslr) -- Regards, SB.Raghavendra. _

Re: [rules-users] How to use Eclipse Rule Project in BRMS

2008-03-10 Thread SB.Raghavendra
In BRMS Admin section,we have the option called "import from XML".How to make XML file such that Eclipse Rule project should be imported into BRMS using the XML file. ... On 3/10/08, Mark Proctor <[EMAIL PROTECTED]> wrote: > > SB.Raghavendra wrote: > > Hi All, > I have a Rule Project in Eclipse

Re: [rules-users] How to use Eclipse Rule Project in BRMS

2008-03-10 Thread Mark Proctor
SB.Raghavendra wrote: Hi All, I have a Rule Project in Eclipse WorkSpace.Now i want to import this Rule Project into Work Space.How can i import the same. In BRMS there is an option in Admin called import from XML but my Rule project does not have XML... Could you please guide me how to import

[rules-users] How to use Eclipse Rule Project in BRMS

2008-03-10 Thread SB.Raghavendra
Hi All, I have a Rule Project in Eclipse WorkSpace.Now i want to import this Rule Project into Work Space.How can i import the same. In BRMS there is an option in Admin called import from XML but my Rule project does not have XML... Could you please guide me how to import -- Regards, SB.Raghavend

Re: [rules-users] Cant seem to fire a dynamically added rule

2008-03-10 Thread samirsss
Hi Edson, I tried the exact method you asked me to and seems like now i am getting an error while I add the rule. Also the rules still dont get fired. I'm going to send you the code again and maybe you can fix it and send it back to me after testing that all 3 scenarios for the messageId = Test,

RE: [rules-users] Making my own agenda Filter

2008-03-10 Thread Anstis, Michael (M.)
Your anonymous sub-class isn't entered or it doesn't run as expected? In your "accept" override you compare object references - type == "AGENDA". Is this what you really want? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mehak Sent: 10 March 2008 13:4

[rules-users] Making my own agenda Filter

2008-03-10 Thread Mehak
Hi I am using this code to make my own agenda filter. In this case if the type of rule is agenda then agenda filter to focus on that agenda is set else agenda filter for rule is set. private static AgendaFilter buildAgendaFilter(RuleConfig rule) { final String searchName = rule.getRuleName(

RE: [rules-users] Interesting null pointer exception when insertingafact.

2008-03-10 Thread Anstis, Michael (M.)
Not with Drools. Happy for you to discount though; it was just an idea. _ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason Partyka Sent: 10 March 2008 12:51 To: Rules Users List Subject: RE: [rules-users] Interesting null pointer exception when insertingafact. I c

Re: [rules-users] Interesting null pointer exception when inserting afact.

2008-03-10 Thread Mark Proctor
please check with 4.0.x, which will be in 4.0.5 this week, and let us know if this is fixed or not. But hurry we are releasing 4.0.5 very soon: http://anonsvn.labs.jboss.com/labs/jbossrules/branches/4.0.x/ Mark Jason Partyka wrote: I can give this a shot, but the reason why you suggest this is n

RE: [rules-users] Interesting null pointer exception when inserting afact.

2008-03-10 Thread Jason Partyka
I can give this a shot, but the reason why you suggest this is not obvious to me. Have you encountered this problem yourself? -Jason From: [EMAIL PROTECTED] [EMAIL PROTECTED] On Behalf Of Anstis, Michael (M.) [EMAIL PROTECTED] Sent: Monday, March 10, 2008 5:0

Re: [rules-users] Problem using Package Builder

2008-03-10 Thread Mehak
Hi Thank you so much for the solution. Yes the dependent jars were missing and i added them up Thank you once again! -- View this message in context: http://www.nabble.com/Problem-using-Package-Builder-tp15891216p15950725.html Sent from the drools - user mailing list archive at Nabble.com. __

Re: [rules-users] Unable to access setter fields of fact in RHS using guided rule editor

2008-03-10 Thread David Godfrey
Yes, that fixed it, many thanks. On 3/10/08, Mark Proctor <[EMAIL PROTECTED]> wrote: > > To modify a fact on the RHS you must bind it to a variable, when > adding/editing the object type make sure you set the variable name. > > Mark > David Godfrey wrote: > > Using Drools 4-0-4, I am trying to se

Re: [rules-users] Changing rule file

2008-03-10 Thread Mark Proctor
no the XML is not the same, details of the changes and a converter are here: http://wiki.jboss.org/wiki/Wiki.jsp?page=Drools2Migration Mark anishanc wrote: Hai friends .. . . . Now am using rule file with .drl extension, But i wanna use .xml file for my rule. Is this .xml rule feasible with

Re: [rules-users] Unable to access setter fields of fact in RHS using guided rule editor

2008-03-10 Thread Mark Proctor
To modify a fact on the RHS you must bind it to a variable, when adding/editing the object type make sure you set the variable name. Mark David Godfrey wrote: Using Drools 4-0-4, I am trying to setup a very simple prototype system to use either of the Guided Rule Editors in Eclipse or BRMS. I

Re: [rules-users] Problem using Package Builder and Jar files in web application

2008-03-10 Thread Mark Proctor
Have you included the correct version of MVEL for that release and did you add it to the correct library directory? Beyond that I don't think anyone can help you more, other than talking you through application server specifics for folder locations. Mark Mehak wrote: Thank you john. The pro

[rules-users] Changing rule file

2008-03-10 Thread anishanc
Hai friends .. . . . Now am using rule file with .drl extension, But i wanna use .xml file for my rule. Is this .xml rule feasible with the old drool. -- View this message in context: http://www.nabble.com/Changing-rule-file-tp15950692p15950692.html Sent from the drools - user mailing list a

[rules-users] Unable to access setter fields of fact in RHS using guided rule editor

2008-03-10 Thread David Godfrey
Using Drools 4-0-4, I am trying to setup a very simple prototype system to use either of the Guided Rule Editors in Eclipse or BRMS. I have created a simple bean class to act as my Fact, and can see this when setting up the LHS, e.g. I can create a condition that a field in my fact must equal "X"

[rules-users] RE: Can I use drools to solve my problem?

2008-03-10 Thread Anstis, Michael (M.)
In my opinion it will be much easier if you insert individual Orders and Products Here's a hurriedly put together example to help you think in terms of rules (I have no experience of your problem domain so this might be laughably wrong):- Global ArrayList branch1; rule "Delievery split - Bran

RE: [rules-users] Interesting null pointer exception when inserting afact.

2008-03-10 Thread Anstis, Michael (M.)
I'm no expert but recall there can be problems running "long running" (subjective) code from AWT's worker thread. I thought it was good practice to run your "application code" in a worker thread. This was the first google hit I had on the matter. http://www.cs.helsinki.fi/u/vihavain/k03/Java/J

RE: [rules-users] Setting date during execution of rules.

2008-03-10 Thread Nimesh Muley
Hi Scott, Mark's reply has answered my question, but I feel I need to reply to this so that my use case was clear. I cannot use the promotion date in the rule definition because this rule is related to commission process based on premiums, targets etc for the agent. Promotion is a cross cuttin

Re: [rules-users] Problem using Package Builder and Jar files in web application

2008-03-10 Thread Mehak
Thank you john. The problem was that I had not included some jar file. Again I am getting a problem while constructing a new Package Builder : java.lang.NoClassDefFoundError: org/mvel/integration/impl/BaseVariableResolverFactory Thoudh I have included the jar file mvel14-1.2.20 that contains t