Camunda Process Definition Version

Hi,

Is there an API call available where I can get the latest version of deployed diagram? We’ve got a scenario where we want to enforce mandatory checks on UI fields, but not for older versions, so I’d like to check what the current version is, return it to the client and it can determine whether or not to enforce the mandatory check. I’ve gone through the API docs, but I can’t see anything like getLatestVersion or getCurrentVersion. Any suggestions?

Stephen

Hi @stephenm,

Try repositoryService.createDeploymentQuery().orderByDeploymentTime().desc().list();

Hope this helps, Ingo

1 Like

Thanks Ingo, this worked a charm!