[rules-users] Firing only changed object rules in stateful sessions

Vinay vinayism at gmail.com
Mon Jan 11 08:01:07 EST 2010


Hi , 
Thanks for the reply. I am new to drools so not much aware of control
properties . Could you please tell more about control properties and if
possible one simple example.
 
Thanks
Vinay 


salaboy wrote:
> 
> Hi,
> Rules reacts on facts changes, if you have one big fact the changes inside
> them will not fire reactions until you update your big fact, that cause
> that
> all the rules over that big fact fires again.
> To solve this, you can add control properties to your fact and to your
> rules.
> 
> On Mon, Jan 11, 2010 at 9:21 AM, Vinay <vinayism at gmail.com> wrote:
> 
>>
>> Hi All ,
>>
>> I am trying to implement the stateful drools implementation with one big
>> object (This object has many objects inside needed for rules). I insert
>> this
>> object in session  and fire all rules.
>>
>> In case the object exist in working memory , I update the object using
>> facthandler. My problem is as soon as the object gets updated using the
>> fact
>> handler all rules again gets fired.  My business requirement is to only
>> fire
>> the rules whose value  got changed in the update process.
>>
>> I can't split the object into small objects , since it has all the
>> relationship and all the rules are already written based on this
>> structure.
>>
>> Could you please guide me how to implement this requirement. Any help is
>> really appreciated.
>>
>> Let me know in case you need any details.
>> Thanks
>> Vinay
>>
>>
>>
>> --
>> View this message in context:
>> http://n3.nabble.com/Firing-only-changed-object-rules-in-stateful-sessions-tp116659p116659.html
>> Sent from the Drools - User mailing list archive at Nabble.com.
>> _______________________________________________
>> rules-users mailing list
>> rules-users at lists.jboss.org
>> https://lists.jboss.org/mailman/listinfo/rules-users
>>
> 
> 
> 
> -- 
> - http://salaboy.wordpress.com
> - http://www.jbug.com.ar
> - Salatino "Salaboy" Mauricio -
> 
> _______________________________________________
> rules-users mailing list
> rules-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/rules-users
> 
> 

-- 
View this message in context: http://n3.nabble.com/Firing-only-changed-object-rules-in-stateful-sessions-tp116659p116734.html
Sent from the Drools - User mailing list archive at Nabble.com.



More information about the rules-users mailing list