Re: [drools-user] DROOLS AND SPRING INTEGRATION

2007-05-24 Thread Michael Neale
http://wiki.jboss.org/wiki/Wiki.jsp?page=RulesWithSpringFramework On 5/24/07, suma [EMAIL PROTECTED] wrote: Hi, Could u please help me in drools and spring integration by giving some examples Thanks, suma -- View this message in context:

Re: [drools-user] SNAPSHOT Builds

2007-05-10 Thread Michael Neale
We will be making use of that a LOT for BRMS, so generally people will be pointed at the latest. On 5/11/07, Mark Proctor [EMAIL PROTECTED] wrote: When ever Hudson (currently internal, will eventually become external) produces a successful build, it polls every 12 minutes, the results are made

Re: [drools-user] Why couldn't I get the parser errors?

2007-05-01 Thread Michael Neale
I would guess in your case the errors are happening when you to the PackageBuilder.addPackage() instead, try PackageBuilder.addPackageFromDrl(...) - it will then give you just one place to look for errors. Michael. On 4/30/07, Li Nao [EMAIL PROTECTED] wrote: Hi, all, I am totally confused

Re: [drools-user] I have a problem in the use of Drools

2007-04-20 Thread Michael Neale
ok Edson fixed it in trunk, should be all cool in the next milestone. On 4/18/07, 家华 黄 [EMAIL PROTECTED] wrote: Dear sir, Hi,i'm a user in china.when i use drools to write the rule, there is a error which is There cannot be more than 3 indexes. i think it means i can not put 4

Re: [drools-user] I have a problem in the use of Drools

2007-04-17 Thread Michael Neale
Hi Jiahua - from the looks of that error you are using 3.1 - latest milesone release. I can see where this is happening in 3.1, but not sure of a fix - I remember mark working on that code though. If you like, please create a JIRA with a test case, I think there must be a way to do this

Re: [drools-user] using function from another .drl file

2007-01-12 Thread Michael Neale
If you use the one packagebuilder, and you add the source first from the one with the function, and then the others, yes that should work just fine ! On 1/11/07, Justine Hlista [EMAIL PROTECTED] wrote: Another newbie question - I'm not sure if what I'm trying to do is legal. I have two drl

Re: [drools-user] Axis2 1.1 Breaks Drools(v. 3.0.5) Rule Compilation

2007-01-08 Thread Michael Neale
That definately looks like a classpath error, somehow the classpath has lost scope to see your classes. Also, we have migrated to the jboss mail servers now (see the other mailing list). On 1/7/07, Paul O'Connor [EMAIL PROTECTED] wrote: I was successfully compiling and using rules in an Axis2

Re: [drools-user] How to use JMX to Deploy Rules in a J2EE Environment?

2007-01-05 Thread Michael Neale
Someone has definately done this, with multiple versions, but who it was escapes me (I have not, I am JMX clue free). We get requests for JMX integration (not really sure what that means) reasonably often, so if anyone knows how to do it, and is willing to either contribute some example code, or

Re: [drools-user] aaaargg...what jar do i really need...

2007-01-05 Thread Michael Neale
http://wiki.jboss.org/wiki/Wiki.jsp?page=RulesDependencies should be up to date, there is also a README.txt in the distro somewhere which specifies what are needed when. Its possible that one of them is not up to date, the maven pom.xml files are the best way to get the definitive word on what

Re: [drools-user] download alternative

2007-01-05 Thread Michael Neale
seems to be OK now - still having this problem? On 1/4/07, Joel G. Rivera-González [EMAIL PROTECTED] wrote: the jboss website always give me problems downloading things... it stock @ 60%...where else can i download drools 3 from? Joel G. Rivera-Gonzalez PRT The first 90% of a project takes

Re: [drools-user] v3.1??

2007-01-04 Thread Michael Neale
A milestone will be out any day now. On 1/4/07, Nirmal.R [EMAIL PROTECTED] wrote: Hi, when Drools v3.1 is getting realeased?? thank you Nirmal -- View this message in context: http://www.nabble.com/v3.1---tf2919307.html#a8158688 Sent from the drools - user mailing list archive at

Re: [drools-user] Executing rules from another rule

2007-01-03 Thread Michael Neale
no, that would not be a rule then, that would be procedural code. But you can achieve what you want in a better loose coupled way. Basically, you have 2 rules: rule1: when Something() then assert(new ControlFact()); rule2: when Something() c: ControlFact() then ... do it here...

Re: [drools-user] XMLGregorianCalendar and cast to Comparable

2007-01-03 Thread Michael Neale
No thats a good question. Unfortunately t the moment that is what you have to do (using eval). There may be a few more options in a future version, but can't say at this stage. I am hoping one day to have pluggable operators so you can define them to do what you want and register them with the

Re: [drools-user] Parent Rule

2007-01-02 Thread Michael Neale
you can in effect to that simply by having seperate files, and then using addPackageFromDRL to add it from multiple sources, the PackageBuilder will merge them all together. You need to have a package statement in all the files, plus other dependencies like globals etc... but it should work just

Re: [drools-user] DSL eval and OR

2007-01-02 Thread Michael Neale
to write it as a plain rule (leaving out the values you had): when dh : DealtHand(seat == Seat.NORTH) eval(dh.getHCP() ={min} dh.getHCP()={max}) or eval(dh.getHCP() ={min} dh.getHCP()={max}) that can't work as the right hand side of the or will not have the dh bound variable. Not sure

Re: [drools-user] help to compile drools under eclipse

2007-01-02 Thread Michael Neale
haven't seen that one... You can import the projects one at a time, or import the top level and then it brings all along with them, it shouldn't give that error. You may need to run maven/ant to download the dependencies at least once though, then refresh eclipse so it can get to the jars which

Re: [drools-user] Running Drools inside netbeans module issues

2006-12-22 Thread Michael Neale
its probably a Netbeans conspiracy ;) It sees those eclipse classes and then decides to make life difficult for you ;) On 12/21/06, Edson Tirelli [EMAIL PROTECTED] wrote: Really weird indeed. But if you are using JANINO, there is no problem in removing the JDT and JCI-JDT jars. []s

Re: [drools-user] Problem with serializing WorkingMemory

2006-12-21 Thread Michael Neale
This really rings a bell, but I am not sure what the solution is/was. Surely other people are doing this with success? The problem must be to do with the drools classes not being available to the classloader that is deserializing the WM. On 12/21/06, Michael Suzio [EMAIL PROTECTED] wrote:

Re: [drools-user] Tomcat reload option

2006-12-20 Thread Michael Neale
not sure if that is a question? But the answer is, with classloaders its possible to do most things, just not easy ;) On 12/20/06, Research [EMAIL PROTECTED] wrote: hi, if i dynamically generate classes in a web application, will my tomcat server will stop and restart if i have kept the

Re: [drools-user] NoClassDefFoundError in rule at application server

2006-12-18 Thread Michael Neale
it looks like the classpath that the facts are on is not available to the classpath that the rules are on. On 12/15/06, Alexey Noskov [EMAIL PROTECTED] wrote: I am using JBoss 4.0.5.GA and JBossRules 3.0.5, managed by MBean. Rules compiled at client and transferred to MBean in ObjectMessage.

Re: [drools-user] Subversion problems

2006-12-18 Thread Michael Neale
If you tried it on Sunday, there is a backup window open some time in the day (not sure when) so you were most likely just unlucky (its only a 2 or 3 hour window). Should be OK now. On 12/18/06, Francesco Campagnola [EMAIL PROTECTED] wrote: Hi, I'm having problems with SVN. I got the same

Re: [drools-user] How does the duration attribute work ?

2006-12-15 Thread Michael Neale
It uses a timer - basically if the condition holds true after XXX amount of time (XXX is milliseconds) then the rule will activate. Use it for temporal rules in stateful applications, eg alarms, monitoring, escalatino etc. The trouble ticket example I believe uses it. For really long running

Re: [drools-user] Reading Rules file inside application server a problem

2006-12-15 Thread Michael Neale
Weblogic certainly does. I remember with versions of hibernate, you had to put antlr at the front of the system classpath, or else use a locally scoped classloader. Probably teh same here (with the antlr 2.x file, not the 3.x one). On 12/15/06, Edson Tirelli [EMAIL PROTECTED] wrote: Uday,

Re: [drools-user] JBoss Rules WokingMemoryLogger and generics: a bug?

2006-12-14 Thread Michael Neale
that defaintely sounds like a bug - want to log it in a JIRA? If it was not allowed in a drl, it would complain at compile time, and you would not be able to run the rules. On 12/14/06, Dandrea Francesco [EMAIL PROTECTED] wrote: Hi all, I'm using Jboss Rules 3.0.5 and Java 1.5.0_09. I'm using

Re: [drools-user] URGENT HELP: Drools 2.1 and Websphere 6.1 on linux

2006-12-13 Thread Michael Neale
R org.xml.sax.SAXException: Unable to reference a Semantics Repository: unknown type 'Extractor' Joel G. Rivera-Gonzalez PRT The first 90% of a project takes 90% of the time, the last 10% takes the other 90% of the time - Murphy's Law - Original Message From: Michael Neale [EMAIL

Re: [drools-user] Keep Rules in Database (Avoiding physical Rule files)

2006-12-13 Thread Michael Neale
yes that should work fine. That error is cause there is no package name (if you print out the string you will find no package declaration at the top). Nothing to do with Readers or databases. On 12/13/06, Joj [EMAIL PROTECTED] wrote: hi, in the HelloWorld example, the rule file is read as

Re: [drools-user] 3.0.5 Eclipse IDE

2006-12-12 Thread Michael Neale
in eclipse required achieving this? Any help is appreciated Thanks -Uday -- *From:* Michael Neale [mailto:[EMAIL PROTECTED] *Sent:* Friday, December 08, 2006 8:57 AM *To:* user@drools.codehaus.org *Subject:* Re: [drools-user] What is a ShadowFact? - crash course

Re: [drools-user] EXISTS and null pointer exception

2006-12-12 Thread Michael Neale
alternatively, send me the spreadsheet directly if you haven't sorted it out and I can take a look at it. Michael. On 12/11/06, Michael Neale [EMAIL PROTECTED] wrote: not sure if it is related to exists or not, can you print out the DRL that it is generating ? (if any) and show you code

Re: [drools-user] URGENT HELP: Drools 2.1 and Websphere 6.1 on linux

2006-12-12 Thread Michael Neale
my bet is it is permissions related, permission to create a classloader etc. On 12/12/06, Joel G. Rivera-González [EMAIL PROTECTED] wrote: correction 2.1 Joel G. Rivera-Gonzalez PRT The first 90% of a project takes 90% of the time, the last 10% takes the other 90% of the time - Murphy's Law

Re: [drools-user] NullPointerException

2006-12-11 Thread Michael Neale
its possible there is a NPE occurring in one of your consequences: Exception in thread main org.drools.spi.ConsequenceException: java.lang.NullPointerException at ... worth while putting some checks in for nulls, see if that is it. On 12/11/06, Liliana Pasquale [EMAIL PROTECTED] wrote:

Re: [drools-user] EXISTS and null pointer exception

2006-12-11 Thread Michael Neale
not sure if it is related to exists or not, can you print out the DRL that it is generating ? (if any) and show you code that you use to load it? On 12/11/06, Wen-Ching Lin [EMAIL PROTECTED] wrote: Hi all, When I tried to use exists in the spreadsheet: *Products* CONDITION CONDITION

Re: [drools-user] Convenience method?

2006-12-06 Thread Michael Neale
no reason, with drools 2 we had every method under the sun, and it was a bit too confusing for some, so we went the other direction for this. StringReader is what is needed as it is friendly to parsers, but sure, a convenience one could be OK. As for the IOException, blame sun and their 90's

Re: [drools-user] Correct usage of PackageBuilder

2006-12-06 Thread Michael Neale
Hi Dirk. When you are building up a package, if you re-used the package builder, you are adding a package each time, which means, it may merge the package (which is what you are doing if you are adding a rule at a time). Hence yes, you do need to add imports/packages each time, as it is a

Re: [drools-user] grandfathered rule/effective rules

2006-12-01 Thread Michael Neale
'version' of the rulebase. On 11/30/06, Michael Neale [EMAIL PROTECTED] wrote: Have talked to a few people about this, so I thought it was worth a write up in the wiki: http://wiki.jboss.org/wiki/Wiki.jsp?page=RulesGrandfather Basically am fishing for ideas of building in grandfather

Re: [drools-user] JBoss Rules 3.0.5 released

2006-12-01 Thread Michael Neale
maven repo) - org.drools (good - current on jboss repo) Thanks Michael Neale wrote, On 2006-11-29 1:33 PM: Latest release of the production branch now available (update site and downloads). Check our blog for the info and release notes: http://markproctor.blogspot.com/2006/11/jboss-rules-305

Re: [drools-user] [trunk] Repetitive field name/signature in class

2006-12-01 Thread Michael Neale
Geoffrey, yes that does sound like a bug. The automatic proxy/scheduling is quite new, and will take some time to stabilise - could you create a test case and JIRA, and email me please (with the JIRA, so I make sure it is not lost) ? I will then (with edson) take a look into it, as there will

Re: [drools-user] How to avoid multiple calls to fireAllRules( ) (if possible) ?

2006-12-01 Thread Michael Neale
yeah, lots of ways of doing it, I didn't really want to suggest it though ;) foreach x in something { wm.assertObject(x); wm.fireAllRules(); } NOT RECOMMENDED (but would probably work) ;) On 11/30/06, Geoffrey Wiseman [EMAIL PROTECTED] wrote: So when do you want rules executed - each time

Re: [drools-user] Question re: 2.5 event model - 3.0 migration...

2006-11-30 Thread Michael Neale
Hi David. Unfortunately in 3 there is no equivalent of conditionTested(), mostly due to the fact that conditions are much more fine grained then in drools 2. In drools 2 each condition node is equivalent to an eval() (or test node in Jess terms). However, in drools 3 there are many more

[drools-user] 3.0.5 plug in requires GEF from eclipse

2006-11-30 Thread Michael Neale
Hi All. Please note that in 3.0.5 the plug in now requires Eclipse GEF: so if you update and the plug in don't work, go to http://download.eclipse.org/tools/gef/downloads/ and download GEF, and try again ! We should have the update site updated soon to do this automatically, but if you download,

Re: [drools-user] Object Hierachy Implementation

2006-11-29 Thread Michael Neale
yes, you need to assert both objects, to get optimal results (in terms of declarative rules, and performance). HOWEVER, as you have asserted ObjectB, ObjectA is available to the rule engine as a member of ObjectB (just not as a fact) - you can use eval() to place additional constraints on the

Re: [drools-user] JBoss Rules 3.0.5 released

2006-11-29 Thread Michael Neale
there. On 11/29/06, Geoffrey De Smet [EMAIL PROTECTED] wrote: Grats! Is it going to be pushed to the central maven repo (like 3.0.4)? Which will be the groupId? - drools (bad - current on central maven repo) - org.drools (good - current on jboss repo) Thanks Michael Neale wrote, On 2006-11-29 1:33

[drools-user] JBoss Rules 3.0.5 released

2006-11-29 Thread Michael Neale
Latest release of the production branch now available (update site and downloads). Check our blog for the info and release notes: http://markproctor.blogspot.com/2006/11/jboss-rules-305-is-released.html

Re: [drools-user] Date-based rules

2006-11-28 Thread Michael Neale
The global way is the best, as steven suggested. It will generally only read that value once. I guess whilst the value changes, once it has passed now then it will never suddenly change from true back to false (unless you go into a black hole or something), so maybe it will work without a global.

Re: [drools-user] A bug compiling package from xml

2006-11-28 Thread Michael Neale
thanks. Feel free to stick to your work around, it is such a minor work around it shouldn't cause a problem for you in future. Michael. On 11/28/06, Javier Prieto [EMAIL PROTECTED] wrote: Ok, thanks Michael. I've reported the bug and a test case in JIRA Michael Neale-2 wrote: Hi Javier

Re: [drools-user] Assert in function

2006-11-27 Thread Michael Neale
not without passing in the KnowledgeHelper into the function. So you can do this: rule test rule when something then callfunc(drools, someobj) end function void callfunc(KnowledgeHelper drools, SomeObject someobj) etc... drools is the implicit knowledge helper that

Re: [drools-user] Date-based rules

2006-11-27 Thread Michael Neale
I agree. We have talked about this before, we are looking at incorporating Joda Time which has constructs (and a great Date/Time API) eventually to support that sort of declarative temporal rules. but no idea when we can do this. One aspect/limitation is that we really don't want an extra

Re: [drools-user] Rules Development

2006-11-17 Thread Michael Neale
There isn't a common methodology yet. It often comes down to syle/preferences. Just like with code, I prefer Test Driven approaches and iterations, others prefer a bottom up modelling approach. The common theme is that the model that the rules use needs to be pretty sound, both in terms of the

Re: [drools-user] exists throw exception

2006-11-17 Thread Michael Neale
that may have been fixed in 3.0.5 (which will be release Real Soon Now) - you can build 3.0.x branch from SVN if you are keen to try (and also in trunk of course). Michael. On 11/17/06, weily li [EMAIL PROTECTED] wrote: Here is the sample rules: rule level_pressure_2 when exists Person();

Re: [drools-user] Access aggregated elements from LHS

2006-11-16 Thread Michael Neale
no you can't do nested accessors like that just now. In 3.2 we will most likely alllow it by converting it to a predicate (which has a runtime performance penalty that most people won't notice, but its necessary as nested structures are kind of unsafe for rete, but nevertheless for the end user

[drools-user] Anyone using websphere drools

2006-11-15 Thread Michael Neale
Any version of drools? (and let me know what version of WS and rules). (if needs to be confidential, feel free to email me directly). Michael.

Re: [drools-user] When do we use an activation-group

2006-11-14 Thread Michael Neale
I think what you are doing now is probably ideal already.agenda-group is the same as module in CLIPS/JESS terms (not sure about JRules). Activation group is a kind of unique thing: basically, of all the rules in the same activation group (ie their group has the same name) - only one will fire (in

Re: [drools-user] Drools limitations for football managers?

2006-11-13 Thread Michael Neale
all good points in this discussion.I have often said that for rule engines, it is a dirty little secret that fact modelling/ontologies/service interface definitions are the most difficult part - hardest to get right (and often needed somewhat upfront). Of course you can use a TDD approach to

Re: [drools-user] Collection/loop question

2006-11-13 Thread Michael Neale
is all the work is in the RHS in the loops, probably maybe better in code. However, if you use the engine to match up the slots (each slot being a little fact seperately asserted) then it may work out nicely (just a guess). On 11/13/06, Paul Smith [EMAIL PROTECTED] wrote: Hi Guys,Can anyone tell

Re: [drools-user] Yet another or question

2006-11-10 Thread Michael Neale
In 3.2 (trunk) we have added what are known as connective constraints which will do what you want (yes they are different from conditional elements in behaviour).But not yet, in 3.0 can you do that. On 11/10/06, John Cocktolstoy [EMAIL PROTECTED] wrote: Hi guys,I got the same errors but thought it

Re: [drools-user] Threads hanging in addWorkingMemory

2006-11-03 Thread Michael Neale
try doing:newWorkingMemory(true);That will bypass that back reference - of course this means if you update the rulebase, the rule changes won't propagate to the working memories (but in your case, I am guessing you probably don't care !). Let us know how that helps. If it does help (or even if it

Re: [drools-user] Threads hanging in addWorkingMemory

2006-11-03 Thread Michael Neale
actually I have already put a JIRA in for this: http://jira.jboss.com/jira/browse/JBRULES-541On 11/3/06, Michael Neale [EMAIL PROTECTED] wrote: try doing:newWorkingMemory(true);That will bypass that back reference - of course this means if you update the rulebase, the rule changes won't propagate

Re: [drools-user] How global are globals?

2006-11-02 Thread Michael Neale
yes, if you have a sepearte working memory instance, you need to set the global seperately in that second WM instance. On 11/2/06, Trevor Pocock [EMAIL PROTECTED] wrote:A point that Im not definite on after reading the user manual - if I define a global foo in my drl, and add this to a working

Re: [drools-user] Binding a variable to the outcome of an exists()

2006-11-02 Thread Michael Neale
That could be a bug.Alternatively, you could just get rid of the exist, bind to the lesson - so the logical assertion happens for each lesson. As long as equals and hashcode are correct on your HardConstraint, it doesn't matter how many times it is asserted, it just builds up evidence. So all the

Re: [drools-user] newbie questions

2006-11-02 Thread Michael Neale
you can only use the field bound immediately before the predicate. You could use any other previously bound variables.In future versions, this will be relaxed (and in fact, predicates will be much more intuitive). Also, I added BigDecimal support for a future release, so you can use literals for

Re: [drools-user] Problem when trying out the trailblazer from jboss rules

2006-11-01 Thread Michael Neale
looks like you are calling the wrong API - you need to pass in a Reader to the .dsl file as well.On 11/1/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Dear all, I'm facing a problem when i'm following the trailblazer demos Extending the simple credit system example with its own Domain

Re: [drools-user] exception in SpreadsheetCompiler().compile(.,.), in 3.0.4, not in

2006-10-30 Thread Michael Neale
There was a slight format change when moving to 3.0.4 - basically there is an extra row where you can put fact declarations, and put the field constraints in their own cells below (makes it easier to do more complex rules). To have things working basically as before, you need a new row inserted

Re: [drools-user] Using my own Extractor Factory?

2006-10-27 Thread Michael Neale
a constraint based on the value of "tuo"? From: Michael Neale [mailto:[EMAIL PROTECTED]] Sent: 27 October 2006 11:08 To: user@drools.codehaus.org Subject: Re: [drools-user] Using my own Extractor Factory? You have understood shadows, yes. For your getters - it doesn't look lik

Re: [drools-user] Using my own Extractor Factory?

2006-10-27 Thread Michael Neale
yes you are correct. a. is true, but solvable (we will solve it - but it will still be about navigating an object graph).b. yes that is true, and this is the more sensitive one. Basically if you use deep nested structures, there may be performance impacts no matter what. So the moral, is flatten

Re: [drools-user] Using my own Extractor Factory?

2006-10-26 Thread Michael Neale
not at the moment no - I am not sure what state it is in for the next version though.But to answer your immediate need, you can actually use non getter methods:say you have a Object called Cheese, and methods like: public String name();public int price();you can actually use them as fields in a

Re: [drools-user] Xml rules

2006-10-26 Thread Michael Neale
basically, you will have to use lots of evals to drill into the xml (perhaps via XPath) - thats the only way off the top of my head. On 10/26/06, gomez [EMAIL PROTECTED] wrote: Ok,but how do I define the rules?I mean, a dom document doesn't have fields,right?So,if I want to define a rule

Re: [drools-user] Simple SWT Rules Editor using DSLs

2006-10-26 Thread Michael Neale
Hi Trevor. Your idea is similar to what I am doing for the web based UI (in fact, the idea came from setting up various email filters - rather watching my wife do it). I think a SWT based one is a great idea, text based editors are of course always needed when the developers have to dive in and

Re: [drools-user] Deploy drools 3.0.4 in Jboss's m2 repository

2006-10-26 Thread Michael Neale
yeah its an unfortunately side effect of using the name space in the groupId for maven that it ends up buried on the server under /org/something/another/finally/where/is/my/freaking/dependencymakes it hard to navigate the repo to see whats available, hence I think a more meaningful group id makes

Re: [drools-user] Error with new dsl field constraint syntax

2006-10-25 Thread Michael Neale
yes the - is reserved for constraints, not for eval, Stephens suggestion looks good.yeah its a current restriction we will be getting rid of in a future version, for sure. On 10/25/06, Steven Williams [EMAIL PROTECTED] wrote: I don't believe you can use eval with column constraints (ie. with -). I

Re: [drools-user] Expression was not expandable with DSL Adding constraints to facts facility

2006-10-25 Thread Michael Neale
yes, and JIRA has been created... it will be fixed one day soon ;)On 10/25/06, Trevor Pocock [EMAIL PROTECTED] wrote:thanks, i now see this was already covered, i add a space after the - in the dsl T-To unsubscribe from this list

Re: [drools-user] Xml rules

2006-10-25 Thread Michael Neale
example of it?Michael Neale-2 wrote: use some kind of a DOM, or XML binding, just like you would in regular code. On 10/18/06, gomez [EMAIL PROTECTED] wrote: Hi,can I specify rules to change an XML document instead of java objects?How? Thanks. -- View this message in context: http://www.nabble.com

Re: [drools-user] Deployment classloading issues

2006-10-25 Thread Michael Neale
looks like there is a conflict, not sure of an easy way to solve that one unfortunately. On 10/20/06, Leyzerzon, Simeon [EMAIL PROTECTED] wrote: Mike, We use drools 2.5. Version of JCI is commons-jci-SNAPSHOT20051110.jar. Thanks. -Original Message-From: Michael Neale

Re: [drools-user] EBNF for JBoss Rules...

2006-10-25 Thread Michael Neale
you can also use Antlrworks to get railroad diagrams at a low level. Antlr uses EBNF style notation, but its not a plain to read what I assume you are expecting ;)On 10/23/06, Mark Proctor [EMAIL PROTECTED] wrote: we use something like that to document the language, but we do not support

Re: [drools-user] an Astonishing Pbm

2006-10-20 Thread Michael Neale
looks like you are using an old version of drools 3.0.3?On 10/19/06, Joj [EMAIL PROTECTED] wrote: http://www.nabble.com/file/3760/CheckClaim1.xls CheckClaim1.xlsOpen the attached excel sheet.Only the 4th rule - to set status to ACCEPTED - will work/fire NEVER! BUT if we swap the PRIORITY value of

Re: [drools-user] List of values

2006-10-20 Thread Michael Neale
you will have to use a predicate or an eval, and basically have a utliity method to take a comma seperated list and do the testing for you.Drools 3.0 doesn't have connective constraints to do it in the constraint language just yet, hence you need a method to do it. On 10/19/06, EJ [EMAIL

Re: [drools-user] propagation of object thru rules

2006-10-19 Thread Michael Neale
Yes, best to accumulate evidence for a rejection like this. Even though, in that case, you only really need one rule to fire, its better from a business rules stand point to have stronger evidence as to why some outcome was decided by engine. Sure enough, one of your users will ask basically the

Re: [drools-user] Xml rules

2006-10-18 Thread Michael Neale
use some kind of a DOM, or XML binding, just like you would in regular code.On 10/18/06, gomez [EMAIL PROTECTED] wrote:Hi,can I specify rules to change an XML document instead of java objects?How? Thanks.--View this message in context: http://www.nabble.com/Xml-rules-tf2465548.html#a6873030Sent

[drools-user] Introducing rule testing framework (experimental)

2006-05-11 Thread Michael Neale
Hi All. I finally got around to tidying up and putting up a fit based (fit.c2.com) rule testing framework. Read about it here: http://fit-for-rules.sourceforge.net/ Please feel free to start using it, and provide improvement suggestions, has worked well for me in the past.

Re: [drools-user] function + modify = error

2006-05-09 Thread Michael Neale
can I ask to have that in a zip? just to make sure it is as you have it? Thanks. On 5/9/06, Alberto Siena [EMAIL PROTECTED] wrote: Michael Neale michael.neale at gmail.com writes: Sorry wasn't able to reproduce, the class you provided looks slightly mangled - there is no getSat method

Re: [drools-user] Problems with Array-Parameter in functions

2006-05-09 Thread Michael Neale
The first one is a bug, that is fixed in RC3 when it comes out. The second one is wrong, as the function needs to return a boolean for it to make sense in an eval. Michael. On 5/8/06, Kihm, Christian [EMAIL PROTECTED] wrote: Hi, we plan to migrate our rule-base vom drools 2.5 to

Re: [drools-user] Problems with Array-Parameter in functions

2006-05-09 Thread Michael Neale
also, if its a migration, you may want to consider the XML language if you want a closer to a direct port - just an option to consider. On 5/8/06, Kihm, Christian [EMAIL PROTECTED] wrote: Hi, we plan to migrate our rule-base vom drools 2.5 to jbossrules. But we have many Problems to get it

Re: [drools-user] Problems with Array-Parameter in functions

2006-05-09 Thread Michael Neale
it from an cvs repository? christian -Ursprüngliche Nachricht- Von: Michael Neale [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 9. Mai 2006 13:16 An: user@drools.codehaus.org Betreff: Re: [drools-user] Problems with Array-Parameter in functions The first one is a bug, that is fixed in RC3

Re: [drools-user] IntelliJ Plugin

2006-05-05 Thread Michael Neale
that might look like a dsl token but isn't. Yeah, I like the don't worry about it right now idea. :) On Thu, 04 May 2006 20:02:07 -0400, Michael Neale [EMAIL PROTECTED] wrote: yes, that was a challenge... basically had to reparse things when a DSL expression is happened upon, and track line

Re: [drools-user] IntelliJ Plugin

2006-05-04 Thread Michael Neale
discovered that there's a groovy plugin for idea that uses antlr as the scanner and parser, so I'm hoping I can use that as a model for drl files. Not sure how I'll do the dsl though *shiver*. On Wed, 03 May 2006 21:07:43 -0400, Michael Neale [EMAIL PROTECTED] wrote: yes eclipse works by having

Re: [drools-user] function + modify = error

2006-05-04 Thread Michael Neale
Sorry wasn't able to reproduce, the class you provided looks slightly mangled - there is no getSat method is the error I get. On 5/4/06, Alberto Siena [EMAIL PROTECTED] wrote: Michael Neale michael.neale at gmail.com writes: can you try changing the name of the funciton (and also make

Re: [drools-user] interfaces

2006-05-04 Thread Michael Neale
description. On 5/5/06, Christopher G. Stach II [EMAIL PROTECTED] wrote: Michael Neale wrote: not sure, that should work.. .there are tests for interfaces specifically. Need more information. On 5/4/06, Christopher G. Stach II [EMAIL PROTECTED] wrote: When I'm writing my rules, it looks like

Re: [drools-user] Using Drools to modify the records of a file

2006-05-03 Thread Michael Neale
may need some more info on the specifics of your rule. On 5/3/06, Karim [EMAIL PROTECTED] wrote: Hi all Drools users,br I'm trying to use Drools in order to determinize a category from a record from an input file and write the category int an output file.br I have around 100 categories and so

Re: [drools-user] IntelliJ Plugin

2006-05-03 Thread Michael Neale
only invokes the parsing phase when necessary. I think. I don't know, I'm might making this up now ;). If I get a jflex file that works, I'll post it, if anyone is curious. On Wed, 03 May 2006 06:18:49 -0400, Michael Neale [EMAIL PROTECTED] wrote: yes the code block is a problem. I am not 100

Re: [drools-user] function + modify = error

2006-05-03 Thread Michael Neale
can you try changing the name of the funciton (and also make it a valid function). On 5/4/06, Alberto Siena [EMAIL PROTECTED] wrote: Mark Proctor mproctor at codehaus.org writes: Strings are immutable the following would not work as you expect. function void modifyString( String s ) {

Re: [drools-user] nested properties

2006-05-03 Thread Michael Neale
no they are not supported yet. we are planning on doing them for 3.1possibly. There is no reason, other then it isn't that easy to do it (its not just using reflection, but it is generating accessors in bytecode). Also, it opens up the question of accessing indexed properties etc.. On 5/4/06,

Re: [drools-user] R: [drools-user] On the fly compilation of rules

2006-05-02 Thread Michael Neale
Builder doing a New builder, this are the options: Java Program Ant Build no JBoss Rules traces. How to do? Thanks. matteo. -Messaggio originale- Da: Michael Neale [mailto:[EMAIL PROTECTED] Inviato: martedì 2 maggio 2006 1.57 A: user@drools.codehaus.org Oggetto: Re: [drools-user] On the fly

Re: [drools-user] Rule Editor

2006-05-01 Thread Michael Neale
right click, and turn on line numbers in the gutter. On 5/1/06, Avi Kavas [EMAIL PROTECTED] wrote: For some reason I don't see the line numbering in the Eclipse when editing rules. Also the Edit menu is disabled when working on the rules editor (I'm working with RC2). Is this a bug?

Re: [drools-user] IntelliJ Plugin

2006-05-01 Thread Michael Neale
Not that I am aware of. Has been a few years since I have used intelliJ, but I am aware that they have some advanced concepts around meta-programming, and making new languages, but they are probably not open source, so that may put a dampener on things. On 5/1/06, Fabian Crabus [EMAIL PROTECTED]

Re: [drools-user] IntelliJ Plugin

2006-05-01 Thread Michael Neale
, didn't grasp a bit, uninstalled it)...nevertheless they offer custom language support via their plugin sdk. It's based on some jflex magic, that can be adapted to antlr based languages- though it's not really for the faint of heart. So I'd hoped that someone dug a little deeper... On 5/1/06, Michael

Re: [drools-user] Question: implement Dynamic runtime addition and removal of rules

2006-04-30 Thread Michael Neale
I think it should merge them all together, I believe there should be no issue (but not sure from experience). On 4/29/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Yes, you are right, I want to add and remove rules in a drl, not generate another drl again. -邮件原件- 发件人: Michael Neale

Re: [drools-user] Drools Eclipse IDE installation

2006-04-28 Thread Michael Neale
no that should be it. You need the right version of eclipse 3.2 (RC1 works well). On 4/29/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, I tried to install the Drools 3.0 IDE for Eclipse. The download contained a single jar file which I placed in my eclipse/plugin directory. The plugin

Re: [drools-user] Question: implement Dynamic runtime addition and removal of rules

2006-04-28 Thread Michael Neale
In the IntegrationCases class, you can see testDynamicAddition, testDynamicRemoval examples - they are part of the test suite. On 4/29/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Thanks Michael, but I could not find the example from jboss web. Could you help me? My project need this

Re: [drools-user] drools behaviour

2006-04-27 Thread Michael Neale
Those are just java errors.. if you try to use an operator like * or against a non primitive Float for instance, you will see that even in normal java code. Now is v1 is bound to a field, it will always be an Object type. Its only in Java 5 that you can start to use primitive operators on the

Re: [drools-user] org.drools.smf.FactoryException: java.util..ConcurrentModificationException

2006-04-27 Thread Michael Neale
hmmm... the only time I have seen that is if I was doing something silly with an iterator... as this is at startup, I can only imagine there is some sort of timing that is effecting classloaders. If its sporadic, its probably just bad luck. It looks like you are loading all your rulebases on

Re: [drools-user] NPE on retract()

2006-04-27 Thread Michael Neale
? -Mitch -Original Message- From: Michael Neale [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 26, 2006 4:04 PM To: user@drools.codehaus.org Subject: Re: [drools-user] NPE on retract() no we *really* need to be able to reproduce it with a test. otherwise its hours of guess work

Re: [drools-user] I am confused

2006-04-26 Thread Michael Neale
- De: Michael Neale [mailto:[EMAIL PROTECTED] Enviado el: miércoles, 26 de abril de 2006 1:52 Para: user@drools.codehaus.org Asunto: Re: [drools-user] I am confused so package test - is OK But package vdberg.CarsXGC.ejbcontainer.domain - is not?? Could be some freak clashing of packages

  1   2   3   >