Hi Edson,
so, when i want modify an event, i could do as follow:
- clone event;
- change the duration
- retract the previuos event
- insert the new event
Is it right?
Bye bye,
Matteo.
2012/2/22 Edson Tirelli <ed.tirelli(a)gmail.com>
Unfortunately you can't update event durations or timestamp. Events are
supposed to represent things that happened and as so, are immutable (other
than data enrichment). If an event representation is no longer true, that
event has to be retracted. Most common case is when you are dealing with
atomic events (like start and end atomic events) that represent a complex
event. Usually you will have a rule that correlates the start and end
atomic events and creates a complex derived event, retracting the atomic
ones.
Edson
2012/2/22 Matteo Cusmai <cusmaimatteo(a)gmail.com>
>
> Hi all,
> i am using Drools Fusion in multi sensor data fusion system. I have some
> rules that generate a new event when some situations occur. But from the
> other hand, i would like to update the event, when i understand that new
> sensor observation is referring to the same event. I have my Event clazz
> with duration field, i try to update it in modify clause, but i have
> concern about it, because when i use temporal operator (such as before,
> meets, so on) it seems that Drools manage them as event with duration null.
> I could post the code too.
> Bye bye,
> Matteo.
> _______________________________________________
> rules-users mailing list
> rules-users(a)lists.jboss.org
>
https://lists.jboss.org/mailman/listinfo/rules-users
>
>
--
Edson Tirelli
JBoss Drools Core Development
JBoss by Red Hat @
www.jboss.com
_______________________________________________
rules-users mailing list
rules-users(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/rules-users