[rules-users] modify keyword cancels activation unexpectedly

gboro54 gboro54 at gmail.com
Wed Jun 6 10:45:30 EDT 2012


Thanks for the insight....I was able to figure it out with have the generic
rule listen for modifications to a certain property. The problem was that
the method being invoked by the other more specific rules was using a
convince method to modify the field so I needed to annotate the method with
the @Modifies method.  


laune wrote
> 
> On 06/06/2012, gboro54 <gboro54@> wrote:
>> I am using drools 5.4 and am running into a weird issue with using modify
>> keyword. I have have two rules, both are similar in conditions(one rule
>> catches 2 additional cases to modify the object with a generic message).
>> Weather I add the checks for each rule into the into the generic rule or
>> have a condition checking the object for the more specific messages to be
>> added, the modify keyword seems to ignore this. In the case where the
>> conditions are added to the generic rule independent the activation is
>> cancelled. Any thoughts?
> 
> Yes: post more,  or nothing at all.
> -W
> _______________________________________________
> rules-users mailing list
> rules-users at .jboss
> https://lists.jboss.org/mailman/listinfo/rules-users
> 


--
View this message in context: http://drools.46999.n3.nabble.com/modify-keyword-cancels-activation-unexpectedly-tp4017772p4017775.html
Sent from the Drools: User forum mailing list archive at Nabble.com.


More information about the rules-users mailing list