[rules-users] Re: Drools 4.0.3 Released

J Michael Dean mdean77 at comcast.net
Wed Oct 24 08:34:42 EDT 2007


Does 4.0.3 take care of the jdt inclusion problem?  Or does this wait  
for 4.1?

- Mike Dean

On Oct 24, 2007, at 12:51 AM, rules-users-request at lists.jboss.org wrote:

> Send rules-users mailing list submissions to
> 	rules-users at lists.jboss.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> 	https://lists.jboss.org/mailman/listinfo/rules-users
> or, via email, send a message with subject or body 'help' to
> 	rules-users-request at lists.jboss.org
>
> You can reach the person managing the list at
> 	rules-users-owner at lists.jboss.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of rules-users digest..."
>
>
> Today's Topics:
>
>    1. Rules firing with an update of another object (Fabrice  
> Granzotto)
>    2. Re: [rules-dev] Drools 4.0.3 Released (Mark Proctor)
>    3. Re: Rules firing with an update of another object (Edson  
> Tirelli)
>    4. RE: Rules firing with an update of another object
>       (Anstis, Michael (M.))
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 23 Oct 2007 18:11:54 -0400
> From: Fabrice Granzotto <granz at MIT.EDU>
> Subject: [rules-users] Rules firing with an update of another object
> To: rules-users at lists.jboss.org
> Message-ID: <20071023181154.mn0tbxwq1yw0k8kw at webmail.mit.edu>
> Content-Type: text/plain;	charset=ISO-8859-1
>
> Hi everybody!
>
> Here is my code and my rule. The problem is that the rule doesn?t  
> detect that
> my item ?chocolate? contained in the container has moved to the
> ?office?.
>
> I know that if I update the item instead the container it?s  
> working, but I was
> wondering if there is a solution to detect this movement by this  
> way? Do you
> have a solution?
>
> Thanks!
>
> *******CODE *******
> session = ruleBase.newStatefulSession();
> Location kitchen=new Location("kitchen");
> Location office=new Location("office");
> Container container1=new Container("container1",kitchen);
> session.insert(container1);
> Item chocolate=new Item("chocolate", container1);
> session.insert(chocolate);
> session.fireAllRules();
> //No rules fired => OK
> container1.setLocation(office);
> session.update(session.getFactHandle(container1), container1);
> session.fireAllRules();
> //Once again, no rules fired => Not OK... I want detect this movement
>
> *******RULE *******
> rule "An item is in the office"
>     	salience 0
>      	when
>          	$itemA : Item($cont : container,  
> $cont.location.name=="office")
>      	then
>        	System.out.println("item in office");
> end
>
>
> ------------------------------
>
> Message: 2
> Date: Wed, 24 Oct 2007 00:47:41 +0100
> From: Mark Proctor <mproctor at codehaus.org>
> Subject: [rules-users] Re: [rules-dev] Drools 4.0.3 Released
> To: Rules Dev List <rules-dev at lists.jboss.org>
> Cc: Rules Users List <rules-users at lists.jboss.org>
> Message-ID: <471E881D.1090900 at codehaus.org>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Fernando Meyer wrote:
>>
>>
>>
>>       <http://blog.athico.com/2007/10/drools-403-released.html>
>>
>>
>> We just released Drools v4.0.3
>> <http://labs.jboss.com/drools/downloads.html>. This is a minor  
>> release
>> with a few improvements on existing features and some bug fixes.
>>
>> Release Notes - JBoss Drools - Version 4.0.3
>>
>> We would like to really thanks all the contributors that helped on
>> getting this release out. From those contributing patches and  
>> docs, to
>> those testing and reporting bugs and providing feedback. The list  
>> is a
>> bit long to post all names here and I may incur in a mistake
>> forgetting someone, so our open public thank you to you all!
>>
>> Follows the release notes.
>>
>> Happy Drooling
>> Drools Team
>>
>>
>>     Bug
>>
>>
>>     * [JBRULES-1264 <http://jira.jboss.com/jira/browse/JBRULES-1264>]
>>       - NPE at BaseObjectClassFieldExtractor.getLongValue with  
>> null fields
>>
>>     * [ JBRULES-1266 <http://jira.jboss.com/jira/browse/ 
>> JBRULES-1266>]
>>       - Composite facts types (OR, AND) not rendering correctly
>>
>>     * [JBRULES-1272 <http://jira.jboss.com/jira/browse/JBRULES-1272>]
>>       - DSL : String index out of range: -1
>>
>>     * [ JBRULES-1279 <http://jira.jboss.com/jira/browse/ 
>> JBRULES-1279>]
>>       - Memory leak in release 4.0.2
>>
>>     * [JBRULES-1281 <http://jira.jboss.com/jira/browse/JBRULES-1281>]
>>       - ExecutorService cannot be shared
>>
>>     * [ JBRULES-1282 <http://jira.jboss.com/jira/browse/ 
>> JBRULES-1282>]
>>       - Problems uploading models etc. into the BRMS
>>
>>     * [JBRULES-1283 <http://jira.jboss.com/jira/browse/JBRULES-1283>]
>>       - Unable to serialize rule base ( NotSerializableException:
>>       org.drools.base.FireAllRulesRuleBaseUpdateListener )
>>
>>     * [JBRULES-1295 <http://jira.jboss.com/jira/browse/JBRULES-1295>]
>>       - DSL Mapping files does not support comments and empty lines
>>
>>
>>     Feature Request
>>
>>     * [JBRULES-1252 <http://jira.jboss.com/jira/browse/JBRULES-1252>]
>>       - DrlDumper does not dump import functions
>>
>>
>>     Task
>>
>>     * [JBRULES-1260 <http://jira.jboss.com/jira/browse/JBRULES-1260>]
>>       - Include eclipse JDT library in drools-eclipse IDE plugin
>>
> Should not that this was a "not fix". heh annoying the way that JIRA
> still includes rejected items in its reporting.
>>
>>
>>     * [ JBRULES-1293 <http://jira.jboss.com/jira/browse/ 
>> JBRULES-1293>]
>>       - Backport for Eclipse 3.3
>>
>>     * [JBRULES-1294 <http://jira.jboss.com/jira/browse/JBRULES-1294>]
>>       - Upgrade to MVEL 1.2.10
>>
>>
>>
>> -- 
>> Fernando Meyer http://fmeyer.org
>> JBoss Rules Core Developer
>> fernando at fmeyer.org <mailto:fernando at fmeyer.org>
>> --------------------------------------------------------------------- 
>> ---
>>
>> _______________________________________________
>> rules-dev mailing list
>> rules-dev at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-dev
>>
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://lists.jboss.org/pipermail/rules-users/attachments/ 
> 20071024/20e86fd6/attachment-0001.html
>
> ------------------------------
>
> Message: 3
> Date: Tue, 23 Oct 2007 20:57:55 -0300
> From: "Edson Tirelli" <tirelli at post.com>
> Subject: Re: [rules-users] Rules firing with an update of another
> 	object
> To: "Rules Users List" <rules-users at lists.jboss.org>
> Message-ID:
> 	<e6dd5ba30710231657p5a389911td9c6dcd592f68356 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
>    Hi Fabrice,
>
>    That is how it is supposed to work... no "automatic" way of  
> doing it in
> another way.
>
>    []s
>    Edson
>
> 2007/10/23, Fabrice Granzotto <granz at mit.edu>:
>>
>> Hi everybody!
>>
>> Here is my code and my rule. The problem is that the rule doesn?t  
>> detect
>> that
>> my item ?chocolate? contained in the container has moved to the
>> ?office?.
>>
>> I know that if I update the item instead the container it?s  
>> working, but I
>> was
>> wondering if there is a solution to detect this movement by this  
>> way? Do
>> you
>> have a solution?
>>
>> Thanks!
>>
>> *******CODE *******
>> session = ruleBase.newStatefulSession();
>> Location kitchen=new Location("kitchen");
>> Location office=new Location("office");
>> Container container1=new Container("container1",kitchen);
>> session.insert(container1);
>> Item chocolate=new Item("chocolate", container1);
>> session.insert(chocolate);
>> session.fireAllRules();
>> //No rules fired => OK
>> container1.setLocation(office);
>> session.update(session.getFactHandle(container1), container1);
>> session.fireAllRules();
>> //Once again, no rules fired => Not OK... I want detect this movement
>>
>> *******RULE *******
>> rule "An item is in the office"
>>         salience 0
>>         when
>>                 $itemA : Item($cont : container,
>> $cont.location.name=="office")
>>         then
>>         System.out.println("item in office");
>> end
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
>
>
>
> -- 
>   Edson Tirelli
>   Software Engineer - JBoss Rules Core Developer
>   Office: +55 11 3529-6000
>   Mobile: +55 11 9287-5646
>   JBoss, a division of Red Hat @ www.jboss.com
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://lists.jboss.org/pipermail/rules-users/attachments/ 
> 20071023/6d6bc946/attachment-0001.html
>
> ------------------------------
>
> Message: 4
> Date: Wed, 24 Oct 2007 07:51:08 +0100
> From: "Anstis, Michael \(M.\)" <manstis1 at ford.com>
> Subject: RE: [rules-users] Rules firing with an update of another
> 	object
> To: "Rules Users List" <rules-users at lists.jboss.org>
> Message-ID:
> 	<6CE83AFC8500B641AE00AC1674A3B4AC037EF8E7 at eu1wam08.warley.ford.com>
> Content-Type: text/plain; charset="us-ascii"
>
> Skipped content of type multipart/alternative-------------- next  
> part --------------
> A non-text attachment was scrubbed...
> Name: smime.p7s
> Type: application/x-pkcs7-signature
> Size: 4159 bytes
> Desc: not available
> Url : http://lists.jboss.org/pipermail/rules-users/attachments/ 
> 20071024/afe29c7e/smime.bin
>
> ------------------------------
>
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
>
>
> End of rules-users Digest, Vol 11, Issue 102
> ********************************************




More information about the rules-users mailing list