[rules-users] Firing only changed object rules in stateful sessions
Mauricio Salatino
salaboy at gmail.com
Mon Jan 11 08:41:47 EST 2010
yes.. some time is a good solution, sometimes not.
His main problem is that he have a big fact with a lot of objects inside.
On Mon, Jan 11, 2010 at 11:31 AM, orchid <maya.pollack at gmail.com> wrote:
>
> I have a question to salaboy:
>
> If you have several rules which check and modify an object, will you need
> to
> add several properties to indicate which rule chagned that object. For
> example:
>
> rule "Rule1"
> no-loop true
> when
> $c:Chesse(type="Chedar")
> then
> modify ($c){addRule("Rule1")}
> end
>
> rule "Rule2"
> no-loop true
> when
> $c:Chesse(price < 100)
> then
> modify ($c){addRule("Rule2")}
> end
>
> rule "Rule3"
> no-loop true
> when
> $c:Chesse(color == "yellow")
> then
> modify ($c){addRule("Rule3")}
> end
>
> I guess I missed something. Don't I :-) ???
> --
> View this message in context:
> http://n3.nabble.com/Firing-only-changed-object-rules-in-stateful-sessions-tp116659p116773.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 -
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20100111/92139fb5/attachment.html
More information about the rules-users
mailing list