[rules-users] Drools 4.0.5 with Maven and JDK 1.4

2008-03-26 Thread Eric Miles
I am attempting to build a project using Maven2 with Drools 4.0.5 and JDK 1.4. The MVEL dependency was downloaded and I'm getting an error with it's pom: mvel-1.2.24-java1.4.pom 3/26/08 8:51:09 AM EDT: Parsing error /home/emiles/.m2/repository/org/mvel/mvel/1.2.24-java1.4/mvel-1.2.24-java1.4.pom

[rules-users] Ant compiler task?

2008-03-07 Thread Eric Miles
I see numerous references to the Ant task in the documentation but see no documentation on how to use it. Where can I find some? Google turned up nothing... ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinf

Re: [rules-users] Re: Maven compilation mojo?

2008-03-07 Thread Eric Miles
ink I did some > review on that code but it never went to mainstream. > could you please compare your code to the attachment? > http://jira.jboss.org/jira/browse/JBRULES-1273 > > > > On Fri, Mar 7, 2008 at 1:22 PM, Eric Miles <[EMAIL PROTECTED]> > wrote: >

Re: [rules-users] Re: Maven compilation mojo?

2008-03-07 Thread Eric Miles
time at runtime? > > With kind regards, > Geoffrey De Smet > > > Eric Miles wrote: > > Is there a Maven Drools compilation mojo, provided either by the Drools > > team or some open source project? If not, I have one that I'd be > > willing to submit. I think

[rules-users] Maven compilation mojo?

2008-03-07 Thread Eric Miles
Is there a Maven Drools compilation mojo, provided either by the Drools team or some open source project? If not, I have one that I'd be willing to submit. I think it's pretty slick and would only require a few tweaks to truly make it useful (hard coded to currently use XStream serialization). __

[rules-users] RuleAgent question

2008-03-07 Thread Eric Miles
Is the rule agent only good for drl files or serialized packages? What about dsl or ruleflow inclusion? I'm looking through the source and it seems it doesn't deal with either of items I've identified. Thanks! Eric ___ rules-users mailing list rules-us

[rules-users] Re: Serialization issue

2007-12-13 Thread Eric Miles
ow to track down this issue I'd appreciate it. Thanks, Eric On Thu, 2007-12-13 at 11:28 -0500, Eric Miles wrote: > All, > > I'm using Xstream for serialization in my project. I am having an issue > after deserializing a package in that application's classloader can'

[rules-users] Re: LHS rule problem with function

2007-12-13 Thread Eric Miles
I found the issue, I was missing an import for the java.util.Iterator. Not that good of an error message, but oh well :) On Thu, 2007-12-13 at 13:50 -0500, Eric Miles wrote: > I'm having a problem with a function I'm trying to call, can someone > lend some advice? I've

[rules-users] LHS rule problem with function

2007-12-13 Thread Eric Miles
I'm having a problem with a function I'm trying to call, can someone lend some advice? I've put together a sample rule (I know the rule doesn't make much sense, but humor me). When trying to compile, I get the following error: * (1,54) unable to resolve method using strict-mode: java.lang.Objec

[rules-users] Serialization issue

2007-12-13 Thread Eric Miles
All, I'm using Xstream for serialization in my project. I am having an issue after deserializing a package in that application's classloader can't find a generated class created by Drools for a function. When I look at the serialized XML, I see an entry for the class: com/kronos/webta/service/

[rules-users] Question about ruleflows

2007-12-11 Thread Eric Miles
I'm going through some code and I came across something that doesn't make much sense to me. Can someone explain to me the design behind tieing a ruleflow to a package? I'm trying to programmatically build some rulebases together and just realized I can not add a ruleflow to a rulebase directly un

[rules-users] error inserting object into working memoery

2007-12-03 Thread Eric Miles
Why am I getting this error when attempting to insert an object into working memory (stateful session) java.lang.NullPointerException at org.drools.common.DefaultFactHandle.(DefaultFactHandle.java:73) at org.drools.reteoo.ReteooFactHandleFactory.newFactHandle(ReteooFactHandleFactor

[rules-users] odd error when trying to update a fact in working memory

2007-12-03 Thread Eric Miles
Can anyone tell me what this means? It seems as though the fact is being updated elsewhere and is causing the fact handle to not be found, but I have no idea how to go about figuring that out. Is this even what this error message is trying to tell me? java.lang.NullPointerException org.

Re: [rules-users] Duplicate variable issue

2007-11-28 Thread Eric Miles
get a duplicate parameter exception. What am I doing wrong? If I haven't set this up incorrectly, I have to think this is a defect. Thanks, Eric On Wed, 2007-11-28 at 09:43 -0500, Eric Miles wrote: > All, > > I have a rule that I'm trying to run against, but I'm getting a >

[rules-users] Duplicate variable issue

2007-11-28 Thread Eric Miles
All, I have a rule that I'm trying to run against, but I'm getting a duplicate parameter error that doesn't make much sense to me. Here is the rule: rule "Daily Core Hours" ruleflow-group "maxiflex-messages" when ScheduleDay($day: day, $schedIn: timeIn, $schedOut:

Re: [rules-users] inserting fact in subflow, availability to other flows?

2007-11-27 Thread Eric Miles
Nevermind, I figured out my problem. It had more to do with the type of join I was doing rather than flow/subflow. Thanks anyways. On Tue, 2007-11-27 at 12:02 -0500, Eric Miles wrote: > I have a main flow that calls a subflow. In this subflow, I am > inserting a fact. In a rule in th

[rules-users] inserting fact in subflow, availability to other flows?

2007-11-27 Thread Eric Miles
I have a main flow that calls a subflow. In this subflow, I am inserting a fact. In a rule in the main flow, it can not find this fact in working memory. Is it possible to insert a fact in a subflow and have it available to a parent flow? Thanks! ___

Re: [rules-users] Log4j in the rules?

2007-11-15 Thread Eric Miles
I set a logger as a global and use it just fine in the RHS. On Thu, 2007-11-15 at 19:30 -0500, [EMAIL PROTECTED] wrote: > Hi, > > Is it possible to use Log4j inside the rules (RHS)?? (drl file) > > Thanks, > > Fabrice > ___ > rules-users mailing list

Re: [rules-users] compound LHS error, getting "Parser error. Contact Dev Team"

2007-11-09 Thread Eric Miles
> Can you please let me know what version are you using? > > Thanks, > Edson > > 2007/11/8, Eric Miles <[EMAIL PROTECTED]>: > I have a compound LHS statement that is causing the parser to >

[rules-users] compound LHS error, getting "Parser error. Contact Dev Team"

2007-11-08 Thread Eric Miles
I have a compound LHS statement that is causing the parser to fail. Here is my exact stacktrace: org.drools.compiler.DroolsParserException: Unknown error while parsing. This is a bug. Please contact the Development team. at org.drools.compiler.DrlParser.compile(DrlParser.java:183)

Re: [rules-users] question on syntax with FROM keyword

2007-11-02 Thread Eric Miles
xists (SomeObject(val == "5") from dao.find(99)) Thanks! Eric On Fri, 2007-11-02 at 17:19 +, Mark Proctor wrote: > put brackets around the SomeObject and from statement > not ( SomeObject(val == "5") from dao.find(99) ) > > Eric Miles wrote: > > I'

[rules-users] question on syntax with FROM keyword

2007-11-02 Thread Eric Miles
I'm trying to use the FROM keyword in a way that I think it should be able to be used, but I'm getting compilation errors. Here are the 2 ways that I'm getting stumped on: exist SomeObject(val == "5") from dao.find(99) and not AnotherObject(val == "Dad") from anotherDao.find(1) If I remove t

[rules-users] variable instance check?

2007-10-18 Thread Eric Miles
In java, I can check to see if a 2 variables references the same instance as such: Object a = new Object(); Object b = a; a == b Is there a way to do this in Drools? For instance, if there is an object in working memory and it is a specific instance, I do not want to fire the rule again.

[rules-users] Re: Odd static inner class behavior

2007-08-01 Thread Eric Miles
http://jira.jboss.com/jira/browse/JBRULES-1053 Truly odd behavior for sure! Thanks, Eric Edson Tirelli wrote: Eric, Please do! Thanks, Edson 2007/7/26, Eric Miles <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>: Edson, That certainly makes sense. However I'm

Re: [rules-users] Something going on with maven2 repo?

2007-07-27 Thread Eric Miles
-0300, Fernando Meyer wrote: > Hey Eric, > > > > It takes a few minutes to sync maven2 repository with subversion, > please try again in a few minutes. > > > Cheers > > Fernando Meyer http://fmeyer.org > [EMAIL PROTECTED] > PGP: 0xD804DDFB > > >

[rules-users] Something going on with maven2 repo?

2007-07-27 Thread Eric Miles
I'm trying to attempt to upgrade to 4.0.0 GA again and it looks like the org.drools:drools:4.0.0 artifact is missing on the server. However, unlike yesterday, the core and compiler artifacts now have poms and checksums (which I think was the issue yesterday). Is the release not fully available on

Re: [rules-users] dependency issue after upgrading to 4.0.0 from MR3 with maven2?

2007-07-26 Thread Eric Miles
e binary: > Caused by: java.lang.RuntimeException: The Eclipse JDT Core jar is not > in the classpath > > Mark > Eric Miles wrote: > > > I am attempting to ween our project off of MR3 and on to the 4.0.0 > > GA and am having a lot of difficulty. First

RE: [rules-users] Quick syntax question

2007-07-26 Thread Eric Miles
tched by the pattern > > $sc : SomeClass() > > ??? > > -Original Message- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Eric Miles > Sent: 26 July 2007 15:19 > To: rules-users@lists.jboss.org > Subject: [rules-users] Quick syntax ques

[rules-users] Quick syntax question

2007-07-26 Thread Eric Miles
Is there an easier way to write this LHS? Class(name == 'com.mycompany.SomeClass') It would be nice to do something like this: Class(name == SomeClass.class.getName()) Suggestions? Thanks all! ___ rules-users mailing list rules-users@lists.jboss.or

[rules-users] Re: Odd static inner class behavior

2007-07-26 Thread Eric Miles
that eventually have the same name. What do you think? Edson 2007/7/26, Eric Miles <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>: Edson, I have since changed my schema but here was my issue: rule1.drl: import com.company.DataClass.AlternativeKey; imp

[rules-users] dependency issue after upgrading to 4.0.0 from MR3 with maven2?

2007-07-26 Thread Eric Miles
I am attempting to ween our project off of MR3 and on to the 4.0.0 GA and am having a lot of difficulty. First off, I had compile issues with the PackageBuilderConfiguration class (attempting to set the compliance level to 1.5). I figured that was no longer necessary so I removed that (I hope tha

[rules-users] Odd static inner class behavior

2007-07-25 Thread Eric Miles
Due to how JAXB treats anonymous inner complex types, I ended up with a public static inner classes named AlternativeKey in several of my data classes I have several rules written to deal with each data class individually that all work ok. However, when I attempt to put them all in the same rule

Re: [rules-users] JBoss Drools 4.0 Released

2007-07-25 Thread Eric Miles
Mark, Any idea when 4.0GA will be up on the jboss maven repo? Thanks! Eric On Wed, 2007-07-25 at 10:04 +0100, Mark Proctor wrote: > JBoss Drools 4.0 has just been released :) We are really proud of what > we have done here. We believe that we now have the best and most > powerful declarative

[rules-users] Issue with not Fact equality checks?

2007-07-24 Thread Eric Miles
I have a single rule in my test bed as such: rule "5th Item Not Test" when $first : FirstClass($i1 : item1, $i2 : item2, $i3 : item3, $i4 : item4, $i5 : item5) not SecondClass(item1 == $i1, item2 == $i2, item3 == $i3, item4 == $i4, item5 == $i5) then

[rules-users] Problem with Drools IDE (Eclipse)

2007-07-13 Thread Eric Miles
I attempted to send this last night, but didn't see it show up to the user list so I'm going to try again, I apologize if this was sent more than once. When I attempt to open several views (Working Memory, Agenda, Global, etc) within an JBoss Rules enabled Eclipse, I receive the following error:

[rules-users] Problem opening several views in 4.0 MR3 Eclipse

2007-07-12 Thread Eric Miles
When I attempt to open several views (Working Memory, Agenda, Global, etc) within an JBoss Rules enabled Eclipse, I receive the following error: java.lang.NoClassDefFoundError: org/eclipse/debug/internal/ui/contexts/provisional/IDebugContextListener at java.lang.ClassLoader.defineClass1(Na

Re: [rules-users] expected release date for 4.0?

2007-06-19 Thread Eric Miles
r 4.0 or do we need to install 4.0 in our own local repositories until it is released? Thanks again. On Tue, 2007-06-19 at 14:44 +0100, Mark Proctor wrote: > mid next month. > > Mark > Eric Miles wrote: > > > When is the expected release date for 4.0? I have looked all o

[rules-users] expected release date for 4.0?

2007-06-19 Thread Eric Miles
When is the expected release date for 4.0? I have looked all over the site, the JIRA roadmap, etc and haven't found this information. Thanks so much. ___ rules-users mailing list rules-users@lists.jboss.org https://lists.jboss.org/mailman/listinfo/rules