It's just adding one prop to your fact and then validate with that
property in your rules. Your rule rhs will modify that properties so
your rule will not fire again
- Ing. Mauricio Salatino -
On Jan 11, 2010, at 11:01 AM, Vinay <vinayism(a)gmail.com> wrote:
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(a)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-session...
>> Sent from the Drools - User mailing list archive at
Nabble.com.
>> _______________________________________________
>> rules-users mailing list
>> rules-users(a)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(a)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-session...
Sent from the Drools - User mailing list archive at
Nabble.com.
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users