--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/a60fa980-6a86-42ef-9fde-1958dc5922d6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/80290fd1-771b-4a77-a667-1c2ef6726306%40googlegroups.com.
A few of clarifications on the use case:You have two rules, att > X and att < Y: Should each rule fire up to one time, independently?
If you have multiple facts that possibly get updated, do you want the rule to fire just once, or once for each fact?
Also, do you ever retract facts? If so, do you ever want the rule(s) to refire when you re-insert them?
group is focused. It does not depend on new facts, or updates to the existing ones, butLock-on-active is scoped by a rule-group and will prevent rules from re-firing as long as the
only on the agenda focus. If you do not manipulate groups, this may be an option.
Exists works for all facts, but can be cleared if you retract/modify objects, so it may refire later.
Control facts are not my first choice, but work, especially if they have some concrete meaning in the domain.With a control fact, you effectively block the rule forever after the first activation.http://ilesteban.wordpress.com/2012/11/16/about-drools-and-infinite-execution-loops/
Also see this ever-green blog post from Esteban which shows other options
Hope this hepls
Davide
--
You received this message because you are subscribed to a topic in the Google Groups "Drools Usage" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/drools-usage/BGCJ-NgaALM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/c7ca277c-f14d-4ceb-855f-da7c3bfdabd7%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/CADdwr3BZOAOWs39g3EO6-3P%3D0-ZewTAsN%2BBsTmf4ROYrfMCSkg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/CANaj1LcUEiB8jxycYVC4Y%2BooKHV%3Dv%2BRML7RdngY-L4%3DOrVyXqQ%40mail.gmail.com.
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/4612B48155EE4196A251C3B461D3DB1C%40millanetworks.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/428CB6E7-5793-4A2F-81C1-AC29947D288F%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/4612B48155EE4196A251C3B461D3DB1C%40millanetworks.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/CANaj1LcoV717--5eGLqhFPT0k%2Bk624UdUtm4swWcwFLLNONfsw%40mail.gmail.com.
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/177F1EF486B54AD9A11AE08D9771E399%40millanetworks.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/177F1EF486B54AD9A11AE08D9771E399%40millanetworks.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/CANaj1LdqPxt1hu4_zV%3D6ABgXLfFp4aB4V%3DPVDxqousFDwNVCQw%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/CAC4FB1828BA483C963E3B2EA74766A0%40millanetworks.com.
On Friday, January 9, 2015 at 11:30 PM, Wolfgang Laun wrote:
acts resulting as the consequence o
--
You received this message because you are subscribed to a topic in the Google Groups "Drools Usage" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/drools-usage/BGCJ-NgaALM/unsubscribe.
To unsubscribe from this group and all its topics, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/48B14B0843A144D89853E91A08051806%40millanetworks.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/CANaj1Le6GAPKMUE8cN%3DMR1iyCwd4d534fDb3JDoKTEp0Aea-jg%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/97C18B7B08834AD881127D48520DC62D%40millanetworks.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/CANaj1LeJh42BC7YYvHn%2BziBuFxoq2Q%3Da0_rCP4be81uz3ZTTNA%40mail.gmail.com.
endinsertLogical( Temp.LOW );thenwhennot Low()
$m: Message(temperature<5)
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/6A292AA0623045E6974DFE3CB0D6FA3F%40millanetworks.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/9E23A8FD-7AB5-4A4E-9DC6-1A37B1DA295F%40gmail.com.
On 14 Jan 2015, at 00:26, David Weir <d...@millanetworks.com> wrote:So obviously right, I’m embarrassed.Thought I might try "exists (Message(temperature>25))” to do the fire once. Would that work?
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/93B9ADADB0F34B1683AA9F2E5E6A2C10%40millanetworks.com.
On 14 Jan 2015, at 00:27, Mark Proctor <mdpr...@gmail.com> wrote:See my other email, if you implemented hashcode/equals correctly there will only ever be once instance in the WM - all other equal objects will not filtered out.On 14 Jan 2015, at 00:26, David Weir <d...@millanetworks.com> wrote:So obviously right, I’m embarrassed.Thought I might try "exists (Message(temperature>25))” to do the fire once. Would that work?
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/C1B25FA8-6C8C-472E-897C-1AA1E99F5C16%40gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/C1B25FA8-6C8C-472E-897C-1AA1E99F5C16%40gmail.com.
If i have a rule which says "if attribute > X then do something" and I'm getting a stream of values for that attribute, what is the best way to have this rule only fire the first time the condition is met?If I have a second rule which says "if attribute < Y then do something else", how do I get it to fire once and allow the previous rule to fire.Is activation groups the right way? Is there a better way?I'm using a stateful cloud session. Is it better to use a stream session?
--
You received this message because you are subscribed to the Google Groups "Drools Usage" group.
To unsubscribe from this group and stop receiving emails from it, send an email to drools-usage...@googlegroups.com.
To post to this group, send email to drools...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/57bf0754-58af-4494-9df6-14670275a011%40googlegroups.com.
Perhaps it's my numpty thinking, but are you keeping state in working memory which causes the rule propogation or just using the rules to determine a change in state? If you held state externally is it just a matter of using a new session and inserting current state to determine the transition?
Sent on the move
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/1427D10B-1677-4F49-90C0-0C2E3E03466D%40milla.life.
To view this discussion on the web visit https://groups.google.com/d/msgid/drools-usage/79D07DA6-67EC-4539-A3F9-993BCCC69A4B%40gmail.com.