[jboss-jira] [JBoss JIRA] (DROOLS-1771) Serialization is triggering rule multiple times

Mario Fusco (Jira) issues at jboss.org
Fri Aug 2 12:13:00 EDT 2019


     [ https://issues.jboss.org/browse/DROOLS-1771?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mario Fusco updated DROOLS-1771:
--------------------------------
    Sprint: 2019 Week 32-34  (was: 2019 Week 29-31)


>  Serialization is triggering rule multiple times
> ------------------------------------------------
>
>                 Key: DROOLS-1771
>                 URL: https://issues.jboss.org/browse/DROOLS-1771
>             Project: Drools
>          Issue Type: Bug
>          Components: core engine
>    Affects Versions: 7.2.0.Final, 7.3.0.Final
>            Reporter: Christopher Brecht
>            Assignee: Mario Fusco
>            Priority: Major
>         Attachments: EventA.java, Person.java, Reproducer.java
>
>
> I attached a reproducer of the problem. If I am executing the rules without serialization everything is working correctly. You can see the output we expect without serialization.
> The EventA at 3:00:30 shouldn’t trigger the rule one at time 3:05:00. Using serialization, event/rule triggering seems to ignore the temporal order of timed events.
> +*WITH SERIALIZATION *+
> STATE OUT Fri Jan 01 03:03:00 CET 2010 com.reproducer.EventA at 614aeccc[value=1,timestamp=Fri Jan 01 03:02:00 CET 2010]
> STATE IN Fri Jan 01 03:05:00 CET 2010 com.reproducer.EventA at 444548a0[value=0,timestamp=Fri Jan 01 03:00:30 CET 2010]
> STATE IN Fri Jan 01 03:05:00 CET 2010 com.reproducer.EventA at 773c0293[value=0,timestamp=Fri Jan 01 03:04:00 CET 2010]
> STATE OUT Fri Jan 01 03:07:00 CET 2010 com.reproducer.EventA at 319854f0[value=1,timestamp=Fri Jan 01 03:02:00 CET 2010]
> STATE OUT Fri Jan 01 03:07:00 CET 2010 com.reproducer.EventA at 415156bf[value=1,timestamp=Fri Jan 01 03:06:00 CET 2010]
> +*WITHOUT SERIALIZATION *+
> STATE OUT Fri Jan 01 03:03:00 CET 2010 com.reproducer.EventA at 659925f4[value=1,timestamp=Fri Jan 01 03:02:00 CET 2010]
> STATE IN Fri Jan 01 03:05:00 CET 2010 com.reproducer.EventA at 562c877a[value=0,timestamp=Fri Jan 01 03:04:00 CET 2010]
> STATE OUT Fri Jan 01 03:07:00 CET 2010 com.reproducer.EventA at 3b569985[value=1,timestamp=Fri Jan 01 03:06:00 CET 2010]



--
This message was sent by Atlassian Jira
(v7.12.1#712002)



More information about the jboss-jira mailing list