[jboss-jira] [JBoss JIRA] (DROOLS-989) Saving/Restoring drools session prevents timer-related rules from firing
Mario Fusco (JIRA)
issues at jboss.org
Wed Jan 27 06:00:02 EST 2016
[ https://issues.jboss.org/browse/DROOLS-989?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mario Fusco resolved DROOLS-989.
--------------------------------
Resolution: Rejected
The KieSessionConfiguration is not part of the marshalled session and has to be passed to the Marshaller when the session is unmarshalled. In your case replacing
{code}
KieSession kSession = marshaller.unmarshall(baos);
{code}
with
{code}
KieSession kSession = marshaller.unmarshall(baos, ksConf, null);
{code}
fixes your test case.
> Saving/Restoring drools session prevents timer-related rules from firing
> ------------------------------------------------------------------------
>
> Key: DROOLS-989
> URL: https://issues.jboss.org/browse/DROOLS-989
> Project: Drools
> Issue Type: Bug
> Components: core engine
> Affects Versions: 6.3.0.Final
> Reporter: David Weir
> Assignee: Mario Fusco
> Priority: Blocker
> Attachments: DroolsTimerTest.java, DroolsTimerTest.java, DroolsTimerTest.java, DroolsTimerTest.java
>
>
> Attached test case shows a timer-base rule firing. Then the session is saved and restored per the manual. When the trigger is inserted again, the rule does not fire.
> This is killing my system whenever I have to restart and restore the current sessions.
> The workaround is to create the session again from scratch
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
More information about the jboss-jira
mailing list