Version currentVersion = versionservice.getCurrentVersion(docNode); Map<String, Serializable> versionProps =newHashMap<String, Serializable>(); versionProps.put(VersionModel.PROP_VERSION_TYPE, VersionType.MINOR); versionservice.createVersion(docNode, versionProps); nodeService.setProperties(docNode, newprops);// after uploading new version I want to update also the metadata
And I encountered:
project-acs_1 | org.activiti.engine.ActivitiException: Exception while invoking TaskListener: Exception while invoking TaskListener: 08020024 The current version label of the node does not exist in the version history.
This error occurs AFTER the first version change (so only when this code is executed 2 or more times)
project-acs_1 | org.activiti.engine.ActivitiException: Exception while invoking TaskListener: Exception while invoking TaskListener: The version property name versionLabel clashes with a reserved verison property name.