Red Hat Bugzilla – Bug 1010237
session-migration: attempt to get a running process instance fails on strategy not found
Last modified: 2014-08-06 16:08:28 EDT
Description of problem:
The following code fails with 'No strategy of type org.drools.marshalling.impl.SerializablePlaceholderResolverStrategy available.'
KieSession ksession = restoreKnowledgeSession(sinfo.getSessionId(), "BPMN2-RepeatingTimer.bpmn2");
ProcessInstance pi = ksession.getProcessInstance(sinfo.getProcessInstanceIds().get(0));
Assert.assertTrue(pi.getState() == ProcessInstance.STATE_ACTIVE);
The change to org.drools.core.marshalling.impl.SerializablePlaceholderResolverStrategy might be required on more places. See attached log.
Created attachment 800427 [details]
Marek, could you please attach the log that you mentioned in the description? I can only see the process definition. Would be nice to see the actual code you use for that. Is there any repo where I can take a look at how you test the migration between 5 and 6?
argh I forgot to attach the log :(. Will correct that ASAP. In mean time here's the repo:
Store part is made in from_5.3.x/.../StoreSessionTest.timerTest() and the load part is made in to_6.x/.../LoadSessionTest.timerTest()
Created attachment 802373 [details]
ensured backward compatibility for strategies
Verified on ER4.