We have legacy processes which are in-flight which was created using activiti 5.15 - and once we upgrade to flowable 6.5 - they continue to run until its completed.
Some of this in-flight processes invoke external sub processes which invokes org.activiti.engine.impl.bpmn.behavior.CallActivityBehavior#execute - and fetches old sub process definition. But in case we have deployed a new version of same subprocess, the same code resolves from cache and pulls the latest subprocess which breaks the code while casting below.
Could you please let us know whether its still possible to continue working with old subprocesses when a new version is deployed or can it point to new sub processes and continue to work - maybe will need to override CallActivityBehavior - any other ideas?
ActivityExecution activityExecution = (ActivityExecution) execution;
PvmProcessInstance subProcessInstance = activityExecution.createSubProcessInstance((ProcessDefinitionEntity) processDefinition);