Richard Conover | 30 Apr 20:22 2004

[drools-user] problems compiling code from CVS.

Hello,

I am having the following problems compiling the code from CVS.  Don't be
surprized, as I am new  Java and all the tools used in the Java world. :)

First, I tried running the build.sh from cygwin (see attached file
b_output.txt which contains the output from the cygwin command window).
When it completed I ended up with drools jar that only contained a manifest.
I suspect it has something to do with my environment, but I am not sure how
to proceed to fix it.  Can anyone give me some direction?

Next I tried setting up Intellij Idea to compile the classes so I could
build a jar myself.  It seems that the following files are not in CVS but
are used in org.drools.semantics.java.ExprAnalyser:

	org.drools.semantics.java.parser.JavaLexer
	org.drools.semantics.java.parser.JavaRecognizer
	org.drools.semantics.java.parser.JavaTokenTypes
	org.drools.semantics.java.parser.JavaTreeParser

Are these really missing in CVS or am I missing something else?

Thanks for your help,

Rich

MountainView Software
a division of Gallagher Bassett Services
335 N. 300 W. Suite 104
Kaysville, UT  84037
(Continue reading)

Hodge, Steven | 30 Apr 23:16 2004
Picon

RE: [drools-user] problems compiling code from CVS.

Richard,

Make sure the cpio from cygwin is installed (check that in cygwin setup).
Also make sure that before you run build.sh from a bash shell that you are
using
/usr/bin/cpio by typing "which cpio".  Everything built OK for me
except for a hangup at the very end after building the document.pdf.

Steve

-----Original Message-----
From: Richard Conover [mailto:rich <at> mvsc.com]
Sent: Friday, April 30, 2004 2:22 PM
To: user <at> drools.codehaus.org
Subject: [drools-user] problems compiling code from CVS. 

Hello,

I am having the following problems compiling the code from CVS.  Don't be
surprized, as I am new  Java and all the tools used in the Java world. :)

First, I tried running the build.sh from cygwin (see attached file
b_output.txt which contains the output from the cygwin command window).
When it completed I ended up with drools jar that only contained a manifest.
I suspect it has something to do with my environment, but I am not sure how
to proceed to fix it.  Can anyone give me some direction?

Next I tried setting up Intellij Idea to compile the classes so I could
build a jar myself.  It seems that the following files are not in CVS but
are used in org.drools.semantics.java.ExprAnalyser:
(Continue reading)

bob mcwhirter | 30 Apr 23:20 2004

RE: [drools-user] problems compiling code from CVS.


Those files are generated by ANTLR when it processes the java.g and
java.tree.g grammar files.  I tend to not checkin generated files, and
the bash scripts at least invoke ANTLR at the right time to ensure the
generated source files get created.

Likewise, I think maven handles it a-okay.

Brian Topping, did we get those maven.xml commits in yet?

	-bob

On Fri, 30 Apr 2004, Hodge, Steven wrote:

> Richard,
>
> Make sure the cpio from cygwin is installed (check that in cygwin setup).
> Also make sure that before you run build.sh from a bash shell that you are
> using
> /usr/bin/cpio by typing "which cpio".  Everything built OK for me
> except for a hangup at the very end after building the document.pdf.
>
> Steve
>
> -----Original Message-----
> From: Richard Conover [mailto:rich <at> mvsc.com]
> Sent: Friday, April 30, 2004 2:22 PM
> To: user <at> drools.codehaus.org
> Subject: [drools-user] problems compiling code from CVS.
>
(Continue reading)

Sandeep K N | 1 Apr 11:12 2004
Picon

[drools-interest] Help needed - ConditionException !

Hi all,

  I was trying to build and execute a simple rule in memory.  

  Rule:  if(a>0) sum=a+b;

When I tried to run the code repeatedly, a ConditionException is being
thrown on the second iteration.  I have pasted the output and the 3
source files below.  Any help would be appreciated.

thanks,
Sandeep

*********************************************
Output:
*********************************************

iteration i = 1
sum = 11
iteration i = 2
org.drools.spi.ConditionException: Sourced file: <Inline eval of:
(myClass.getA()>0); > : Attempt to invoke method: getA() on undefined
variable or class name: myClass
	at
org.drools.semantics.java.ExprCondition.isAllowed(ExprCondition.java:116
)
	at
org.drools.reteoo.ConditionNode.assertTuple(ConditionNode.java:153)
	at
org.drools.reteoo.TupleSource.propagateAssertTuple(TupleSource.java:119)
(Continue reading)

Sandeep K N | 1 Apr 15:05 2004
Picon

RE: [drools-interest] Help needed - ConditionException !

Thanks Ajay for your inputs !

Would like to see my code work for different conditions and consequences
eventually i.e., transform the code to a method which accepts condition
and consequence as arguments and executes the rule.  Hence, I tried
creating the rule and working memory afresh in each iteration.  Could
you tell me more about working memory ? Why recreating working memory
was failing (throwing a ConditionException)? 

Help me get drools-smart !
thanks,
Sandeep

<snip>
-----Original Message-----
From: Ajay Kamdar [mailto:akamdar <at> javtech.com] 
Sent: Thursday, April 01, 2004 5:43 PM
To: Sandeep K N; drools-interest <at> lists.codehaus.org
Subject: RE: [drools-interest] Help needed - ConditionException !

It looks like no only is your code executing the simple rule multiple
times, it is also creating the rule, ruleset, working memory, etc.
during each iteration. If all you want is to evaluate the rule multiple
times with different values of "a", then you should really move the
construction of the working memory out of the iteration.

</snip>

_______________________________________________
drools-interest mailing list
(Continue reading)

Leigh Warren | 1 Apr 15:56 2004

[drools-interest] Extractor

Hello,
 
Anyone have any docs on the extractor tags.  I see it has changed but from the website I have no idea what it does or what it would be useful for?
 
Regards,
 
Leigh..
Nagaraju K. | 1 Apr 17:46 2004

[drools-interest] Caching Rules

Hi All,
            Can any one help me how i can cache the rules in drools.My requirement is i dont want to load the rules
every time rather cache the rules so that performance is improved.

Any suggestions/ideas

Thanks,
Nagaraju

Doug Bryant | 1 Apr 17:57 2004

Re: [drools-interest] Caching Rules

the rulesets are serializable so once you load them the first time, you
can store them somewhere. We just happen to pin them to the jndi tree.

I would just create some sort of rule manager class that you can say
getRules() from.  That method would first try to load the stored
version, and return those.  If there was no stored version, it would
create them, store them, and return the rule.

Hope this helps. 

Doug

On Thu, 2004-04-01 at 10:46, Nagaraju K. wrote:
> Hi All,
>             Can any one help me how i can cache the rules in drools.My
> requirement is i dont want to load the rules
> every time rather cache the rules so that performance is improved.
> 
> Any suggestions/ideas
> 
> Thanks,
> Nagaraju
--

-- 
Doug Bryant
ICF Consulting
Software Engineer

phone: 843.760.3635
  fax: 843.207.5444
email:  wbryant <at> icfconsulting.com
        dbryant <at> scra.org

_______________________________________________
drools-interest mailing list
drools-interest <at> lists.codehaus.org
http://lists.codehaus.org/mailman/listinfo/drools-interest

.

bob mcwhirter | 1 Apr 17:59 2004

Re: [drools-interest] Caching Rules


You can just cache at the RuleBase level and create as many WorkingMemory
instances as you like from it.

	-bob

On Thu, 1 Apr 2004, Nagaraju K. wrote:

> Hi All,
>             Can any one help me how i can cache the rules in drools.My requirement is i dont want to load the rules
> every time rather cache the rules so that performance is improved.
>
> Any suggestions/ideas
>
> Thanks,
> Nagaraju
>

--
Bob McWhirter        bob <at> werken.com
The Werken Company   http://werken.com/
_______________________________________________
drools-interest mailing list
drools-interest <at> lists.codehaus.org
http://lists.codehaus.org/mailman/listinfo/drools-interest

.

Nagaraju K. | 1 Apr 19:12 2004

RE: [drools-interest] Caching Rules

hi bob,

         how do we obtain a RuleBase in the client code? As per implementation we should be able to get the RuleBase
from RuleExecutionSet but I didnt see the method getRuleBase() in RuleExecutionSet.

I guess we need a RuleBase to obtain the WorkingMemory object.can you tell me how this can be obtained?

Regards,
Nagaraju

-----Original Message-----
From: bob mcwhirter [mailto:bob <at> werken.com]
Sent: Thursday, April 01, 2004 11:00 AM
To: Nagaraju K.
Cc: drools-interest <at> lists.codehaus.org
Subject: Re: [drools-interest] Caching Rules

You can just cache at the RuleBase level and create as many WorkingMemory
instances as you like from it.

	-bob

On Thu, 1 Apr 2004, Nagaraju K. wrote:

> Hi All,
>             Can any one help me how i can cache the rules in drools.My requirement is i dont want to load the rules
> every time rather cache the rules so that performance is improved.
>
> Any suggestions/ideas
>
> Thanks,
> Nagaraju
>

--
Bob McWhirter        bob <at> werken.com
The Werken Company   http://werken.com/
_______________________________________________
drools-interest mailing list
drools-interest <at> lists.codehaus.org
http://lists.codehaus.org/mailman/listinfo/drools-interest

.


Gmane