How to get the latest deployment of a process definition?

Hello everyone.
Does someone know how to get the latest deployment of a process definition via java api ?

I was tried to use the repositoryService to do that but the repositoryService does not have a interface that is able to get the deployment by processDefinitionKey.

Thanks you all.

Hey @himly,

Have you searched the Camunda Java docs?

Something like this should do the trick.

createProcessDefinitionQuery().processDefinitionKey("YourKey").latestVersion()

You can see all the interfaces here.

Does this help?

Regards,

3 Likes

Hey @patozgg
Thank you so much. You saved my day.