Migration of process definition from activiti 5 to flowable 6

hello,

i’m debugging the migration of some process definition after upgrade of openidm 6.5 to 7.4 (activiti 5.15 to flowable version 6.6.0). i don’t understand why you return true when compatibiliy is enabled and version is v5, and then raise the exception :
FlowableException(“Flowable 5 process definitions are not supported”);

if (isVersion5Tag(tag)) {
    if (!processEngineConfiguration.isFlowable5CompatibilityEnabled() || processEngineConfiguration.getFlowable5CompatibilityHandler() == null) {
        throw new FlowableException(entityType + " with id " + id + " has a v5 tag and flowable 5 compatibility is not enabled");
    }

    return true;

} else {
    if (tag != null) {
        throw new FlowableException("Invalid 'engine' for " + entityType + " with id " + id + " : " + tag);
    }
    return false;
}

it should be normal that the version of the process definition we want to upgrade is v5.

can you please provide us information about this.

regards,

Hey @krimo,

We do not support migrating the runtime instances from v5 to v6 definitions.

When you are upgrading from v5 to v6 you will have to keep running the existing process instances in the v5 mode. Only new instances can be started in v6 mode and then migrations from one definition to another definition is possible only for v6 process instances.

Not sure if you’ve gone through Flowable Migration Guide : Flowable or Activiti v5 to Flowable V6 · Flowable Open Source Documentation as well?

To further clarify, the new functionality such as dynamic state change and / or migrating from one definition version to another definition version is only possible for process instances started with the v6 definitions.

Hope this helps,
Filip

1 Like

Thanks for your help @filiphr.