Atul Kshatriya | 2 Jul 05:05 2005

[drools-user] making Drools work with JDK 1.2.2

Hi,
I have just started looking into Drools and am very excited. We are
currently using JDK 1.2.2 for our deployment and would like to know if I
can somehow get Drools work with it.

I did try to compile the code and with some modifications was successful.
But then I landed up in xerces issues. The new one that Drools (2.0) comes
with won't seem to work and Drools doesn't like if I give it the xerces we
use.

Any suggestions?

Thank you very much,

Atul.

Barry Kaplan | 2 Jul 05:19 2005

Re: [drools-user] making Drools work with JDK 1.2.2

Wow, 1.2! I have to ask. Why? Do you guys at Fry's like punishment?

Sorry, I can't help. Never even considered testing with 1.2. I'm 
suprised it compilled.

And FYI, v2.1 will be 1.4+ only.

-barry

Atul Kshatriya wrote:

>Hi,
>I have just started looking into Drools and am very excited. We are
>currently using JDK 1.2.2 for our deployment and would like to know if I
>can somehow get Drools work with it.
>
>I did try to compile the code and with some modifications was successful.
>But then I landed up in xerces issues. The new one that Drools (2.0) comes
>with won't seem to work and Drools doesn't like if I give it the xerces we
>use.
>
>Any suggestions?
>
>Thank you very much,
>
>Atul.
>
>  
>

(Continue reading)

Atul Kshatriya | 2 Jul 05:35 2005

Re: [drools-user] making Drools work with JDK 1.2.2

I know it is crazy to be using 1.2 right now - but that's what we have. We
will soon be going to 1.4 but I was trying to make it work in our current
environment.

Actually as I said I had to do only a few modifications and I could
compile it on 1.2.2. The only issue is xerces. I get the following
exception -

Exception:
org.xml.sax.SAXException:
        at
org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:987)
        at javax.xml.parsers.SAXParser.parse(Unknown Source)
        at org.drools.io.RuleSetReader.read(Unknown Source)
        at org.drools.io.RuleSetReader.read(Unknown Source)
        at org.drools.io.RuleBaseLoader.loadFromUrl(Unknown Source)
        at org.drools.io.RuleBaseLoader.loadFromUrl(Unknown Source)
        at org.drools.io.RuleBaseLoader.loadFromUrl(Unknown Source)

If you can suggest me where I might look for resolution that would be great.

Thanks a lot.

Atul.

> Wow, 1.2! I have to ask. Why? Do you guys at Fry's like punishment?
>
> Sorry, I can't help. Never even considered testing with 1.2. I'm
> suprised it compilled.
>
(Continue reading)

Barry Kaplan | 2 Jul 09:06 2005

Re: [drools-user] making Drools work with JDK 1.2.2

Atul Kshatriya wrote:

>If you can suggest me where I might look for resolution that would be great.
>  
>
Mark or somebody else will have to help with that. I don't use any of 
the xml aspects of drools. Sorry.

-barry

Mark Proctor | 2 Jul 12:32 2005

Re: [drools-user] making Drools work with JDK 1.2.2

no idea,  drools 2.0 testing was only done for jdk1.3 - I expected 
xerces isn't jdk1.2 compatable.

Mark
Atul Kshatriya wrote:

>I know it is crazy to be using 1.2 right now - but that's what we have. We
>will soon be going to 1.4 but I was trying to make it work in our current
>environment.
>
>Actually as I said I had to do only a few modifications and I could
>compile it on 1.2.2. The only issue is xerces. I get the following
>exception -
>
>Exception:
>org.xml.sax.SAXException:
>        at
>org.apache.xerces.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:987)
>        at javax.xml.parsers.SAXParser.parse(Unknown Source)
>        at org.drools.io.RuleSetReader.read(Unknown Source)
>        at org.drools.io.RuleSetReader.read(Unknown Source)
>        at org.drools.io.RuleBaseLoader.loadFromUrl(Unknown Source)
>        at org.drools.io.RuleBaseLoader.loadFromUrl(Unknown Source)
>        at org.drools.io.RuleBaseLoader.loadFromUrl(Unknown Source)
>
>If you can suggest me where I might look for resolution that would be great.
>
>Thanks a lot.
>
>Atul.
(Continue reading)

Alex Rupp | 2 Jul 15:57 2005

Re: [drools-user] Using preferences for conditions

I think we're whittling it down.

How's this for a solution?

Run the alternate gender seating rule, and then run another rule along 
the lines of "if it were better Alice and Barbara trade seats, then have 
them switch seats."

There's no reason why both of your rules can't fire.  The first one 
firing has nothing to do with the second, unless for some reason a 
condition for the second rule to fire is not met. 

For example, I have the following rules:

<rule name="customers buy coffee">
  <if>
    <customerIsTired/>
    <customerIsThirsty/>
    <customerHasMoney/>
  </if>
  <then>
    <customerBuysCoffee/>
  </then>
</rule>

<alexrule name="alex gets free coffee" salience="10">
  <if>
    <alexIsTired>
    <alexIsThirsty>
  </if>
(Continue reading)

Michael Neale | 3 Jul 06:35 2005
Picon

[drools-user] RE: [drools-dev] 1,2 and 5 minute tutorials

Have added runtime API section to the 1 minute tutorial. Someone else can do
the 5 minute one, as it is using features that I haven't used in anger yet. 

-----Original Message-----
From: Mark Proctor [mailto:mproctor <at> codehaus.org] 
Sent: Thursday, 23 June 2005 10:34 AM
To: user <at> drools.codehaus.org; dev <at> drools.codehaus.org
Subject: [drools-dev] 1,2 and 5 minute tutorials

Any one want to update the 1 and 2 minute tutorials with the java code
showing how to execute the drls? Also how about a 5 minute tutorial that
takes the very simple bob like cheese drl, but adds in <imports>,
<application-data> and <functions>.

Any Takers?

Mark Proctor (mproctor <at> iterion.com)
Drools Project Lead
Iterion
Support, Consultancy and Training http://iterion.com/services/rules.htm

Jai Kejriwal | 3 Jul 18:17 2005
Picon

[drools-user] Code compilation of DRL file

Hi,

Can someone tell me where the code in the drl file is compiled using Janino.
I want to only compile the code within the consequence tags and modifying drools
so that I can make the consequence code execute at all
times(irrespective of whether
conditions are satisfied or not)

Thanks

Mark Proctor | 3 Jul 18:24 2005

Re: [drools-user] Code compilation of DRL file

Its compiled and loaded  in memory, no files are written.

Mark
Jai Kejriwal wrote:

>Hi,
>
>Can someone tell me where the code in the drl file is compiled using Janino.
>I want to only compile the code within the consequence tags and modifying drools
>so that I can make the consequence code execute at all
>times(irrespective of whether
>conditions are satisfied or not)
>
>Thanks
>
>
>  
>

Bob McWhirter | 3 Jul 18:34 2005

Re: [drools-user] Code compilation of DRL file

You can let drools compile it as normal, get the Rule, then  
getConsequence() and fire it directly if you feed it a nice Tuple.

     -Bob

On Jul 3, 2005, at 12:24 PM, Mark Proctor wrote:

> Its compiled and loaded  in memory, no files are written.
>
> Mark
> Jai Kejriwal wrote:
>
>
>> Hi,
>>
>> Can someone tell me where the code in the drl file is compiled  
>> using Janino.
>> I want to only compile the code within the consequence tags and  
>> modifying drools
>> so that I can make the consequence code execute at all
>> times(irrespective of whether
>> conditions are satisfied or not)
>>
>> Thanks
>>
>>
>>
>>
>
>
(Continue reading)


Gmane