Michael Neale | 7 Sep 2005 13:08
Favicon

[drools-dev] SURVEY: No-Loop changes (DROOLS-403)

A bug has been found in the implementation of no-loop (that has been around
for a while) that  in some cases causes rules to be removed from the Agenda
in error (especially with a modifyObject).

http://jira.codehaus.org/browse/DROOLS-403

Looking at how other engines work, the solution is to correct this so that
no-loop works as follows:

If a currently firing rule is marked as no loop, and is trying to add itself
to the agenda, it will allow this is the TupleKey is different from the
TupleKey of the Tuple that caused the rule to fire in the first place. This
means that a rule will not recurse itself with the same data over and over.

How ever, you can have Rule+TupleA fire Rule+TupleB, which fires Rule+TupleA
and so on... (this was not the case before, which was in error).

The upshot of this is that it is possible that people will see looping where
the didn't before, as this is a change in behaviour - but it is a BUG. The
incorrect implementation did err on the side of stopping loops though.

After some discussion, I am committing this into CVS head (for 2.1). Please
try this and comment in JIRA on this if you have issues with this, and it
can be rolled back.

Some other options are to have a flag that sets "classic" (error) behaviour,
and longer term have more control over no loop (such as specifying only one
Rule/TupleKey combination should ever be executed etc).

Michael.
(Continue reading)

Mark Proctor | 12 Sep 2005 00:58

[drools-dev] 5 algorithms compared

Interesting paper
http://www.sigmod.org/vldb/conf/1991/P287.PDF

Mark

Alwyn.Donnell | 13 Sep 2005 10:30
Favicon

[drools-dev] JSR94 and application data

How can I get application-data to my java DRL file using the JSR94
interface ?

Thanks in advance

Regards
Alwyn

==========================================================================

Visit our website at http://www.gartmore.com

Gartmore Investment Management plc is an appointed representative of
Gartmore Investment Limited which is authorised and regulated by the
Financial Services Authority.  

This message is sent in confidence for the addressee only.  The
contents are not to be disclosed to anyone other than the addressee.
Unauthorised recipients must preserve this confidentiality and
should please advise the sender of any error in transmission.

No person should rely on the contents of this e-mail without written
confirmation of its contents. This e-mail and the information it
contains are sent in good faith but Gartmore Investment Management
plc and its holding companies and subsidiaries (collectively
"Gartmore") shall not be under any liability in damages or otherwise
for any reliance the recipient may place upon them.

Gartmore reserves the right to monitor and record business and
personal communications. By responding to an email or call from a
(Continue reading)

Mark Proctor | 13 Sep 2005 12:00

Re: [drools-dev] JSR94 and application data

use the properties map, as specified in the javadocs.

Mark
Alwyn.Donnell <at> gartmore.com wrote:

>How can I get application-data to my java DRL file using the JSR94
>interface ?
>
>Thanks in advance
>
>Regards
>Alwyn
>
>
>
>==========================================================================
>
>Visit our website at http://www.gartmore.com
>
>Gartmore Investment Management plc is an appointed representative of
>Gartmore Investment Limited which is authorised and regulated by the
>Financial Services Authority.  
>
>This message is sent in confidence for the addressee only.  The
>contents are not to be disclosed to anyone other than the addressee.
>Unauthorised recipients must preserve this confidentiality and
>should please advise the sender of any error in transmission.
>
>No person should rely on the contents of this e-mail without written
>confirmation of its contents. This e-mail and the information it
(Continue reading)

Anand L. Sawant | 13 Sep 2005 12:11
Favicon

[drools-dev] Drools in JBoss

Hi All,

I am building a web based procurement application using drools.

I am using JBoss as application server.

1.	I need to create an Interface / Wrapper to use Drools in EJB
environment in an optimized way.
2.	Can Drools be used to configure procurement workflow in a web
based application.

Can some one please guide me on this requirement? Is there any existing
code ?

Thanks in advance

warm regards

Anand L Sawant

Programmer Analyst

Tel: 91 22 56952222 extn: 7839

MASTEK
"Making a valuable difference"
Mastek in NASSCOM's 'India Top 20' Software Service Exporters List.
In the US, we're called MAJESCO

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
(Continue reading)

Alwyn.Donnell | 15 Sep 2005 15:12
Favicon

[drools-dev] DRL Editors

Are there any DRL Editors available, I have seen one, DRLAssistant, and
wondered if there are any others.

DRLAssistants editor is very basic, we were wondering if any editors
existed that had java syntax checking available, making it easier to create
the java DRL files in java ?

We are not that happy about having to write java code in a basic text
editor .

Regards
Alwyn

==========================================================================

Visit our website at http://www.gartmore.com

Gartmore Investment Management plc is an appointed representative of
Gartmore Investment Limited which is authorised and regulated by the
Financial Services Authority.  

This message is sent in confidence for the addressee only.  The
contents are not to be disclosed to anyone other than the addressee.
Unauthorised recipients must preserve this confidentiality and
should please advise the sender of any error in transmission.

No person should rely on the contents of this e-mail without written
confirmation of its contents. This e-mail and the information it
contains are sent in good faith but Gartmore Investment Management
plc and its holding companies and subsidiaries (collectively
(Continue reading)

Mark Proctor | 15 Sep 2005 16:12

Re: [drools-dev] DRL Editors

I would stick with xml spy for now. This is high on our agenda and 
something I hope to address soon.

Mark
Alwyn.Donnell <at> gartmore.com wrote:

>Are there any DRL Editors available, I have seen one, DRLAssistant, and
>wondered if there are any others.
>
>DRLAssistants editor is very basic, we were wondering if any editors
>existed that had java syntax checking available, making it easier to create
>the java DRL files in java ?
>
>We are not that happy about having to write java code in a basic text
>editor .
>
>Regards
>Alwyn
>
>
>==========================================================================
>
>Visit our website at http://www.gartmore.com
>
>Gartmore Investment Management plc is an appointed representative of
>Gartmore Investment Limited which is authorised and regulated by the
>Financial Services Authority.  
>
>This message is sent in confidence for the addressee only.  The
>contents are not to be disclosed to anyone other than the addressee.
(Continue reading)

Geoffrey Wiseman | 15 Sep 2005 18:37

Re: [drools-dev] DRL Editors

Alwyn.Donnell <at> gartmore.com wrote:

>Are there any DRL Editors available, I have seen one, DRLAssistant, and
>wondered if there are any others.
>
>DRLAssistants editor is very basic, we were wondering if any editors
>existed that had java syntax checking available, making it easier to create
>the java DRL files in java ?
>
>We are not that happy about having to write java code in a basic text
>editor .
>  
>
You /can/ use the JDK1.5 annotated rules (or the Spring ones in CVS) to 
get around that, although those are new enough to have their own set of 
limitations.

    - Geoffrey

Michael Neale | 16 Sep 2005 06:28
Favicon

RE: [drools-dev] DRL Editors

Yes this is something that Mark is interested in, but it is quite a lot of
work to do it (and make it nice to use). 

I guess another aspect is that the current approach discourages you from
writing too much "code" in the rules !!! ;) 

The pojo/spring module is an option, but by using it you lose the "dynamic"
nature of rule changes on the fly (not a problem for some people and some
apps though). 

It will happen... Soon... 

-----Original Message-----
From: Alwyn.Donnell <at> gartmore.com [mailto:Alwyn.Donnell <at> gartmore.com] 
Sent: Thursday, 15 September 2005 11:13 PM
To: dev <at> drools.codehaus.org
Subject: [drools-dev] DRL Editors

Are there any DRL Editors available, I have seen one, DRLAssistant, and
wondered if there are any others.

DRLAssistants editor is very basic, we were wondering if any editors existed
that had java syntax checking available, making it easier to create the java
DRL files in java ?

We are not that happy about having to write java code in a basic text editor
.

Regards
Alwyn
(Continue reading)

kartik srinivasan | 17 Sep 2005 10:05
Picon
Favicon

[drools-dev] Queries about specifying logical expressions in rule conditions.

Hi folks.

I have a couple of questions related to how logical conditions are specified 
in the Java semantic module.

Q1. I found that
Approach 1:
<java:condition>A.test()</java:condition>
<java:condition>B.test()</java:condition>
&
Approach 2:
<java:condition>A.test() && B.test()</java:condition>

are equivalent

Which of the above approaches is better/suggested ? Are there any negative 
implications of using the latter approach?

Q2. Is there a mechanism to specify a logical OR through the same XML format 
? I couldnt find any literature regarding the same. Currently I am embedding 
a '||'  operator in the java:condition tag to get around the problem.

<java:condition>A.test() || B.test() </java:condition>

Why has the java semantic library been structured to support only AND 
conditions ? Is there a plan to support logical OR in a later release ?

Please do let me know..

Thanks & Regards,
(Continue reading)


Gmane