-
1. Re: Classcastexception when trying to use process migration
amin-mc Nov 5, 2011 5:14 AM (in response to amin-mc)Hi
Can anyone advise on this? It is preventing us being able to upgrade our process instances. Has anyone else experienced this problem?
Thanks
-
2. Re: Classcastexception when trying to use process migration
amin-mc Nov 5, 2011 9:52 AM (in response to amin-mc)I've narrowed this down. If you create a StatefulKnowledgeSession using JPAKnowledgeService.newStatefulKnowledgeSession(..) then it creates a COmmandBasedStatefulKnowledgeSession which doesn't implement InternalKnowledgeRuntime. I'm going to look at creating a statefulKnowledgession using the knowledgebase. Is it going to be a problem if i upgrade a process instance using the non command based statefulknowledgesession and then later access that process instance with a session from JPAKnowledgeService?
-
3. Re: Classcastexception when trying to use process migration
lukasz.kozerski Feb 14, 2012 4:10 AM (in response to amin-mc)Hi!
Have you found any solution for this issue?
-
4. Re: Classcastexception when trying to use process migration
amin-mc Feb 14, 2012 4:30 AM (in response to lukasz.kozerski)Hi
Basically what i do is:
session.execute(new GenericCOmmand(...) {});
This gives me the session i need to perform process migration.
Hope that helps