Access the versionTag in a java jobworker

Hello,
We defined the process definition attribute “versionTag” as a business defined “version number” (e.g., “0.0.2. FINAL”) that documents which “process version” changed some “long term” data.

What is the easiest way to access the versionTag in a jobworker (zeebe, java client, version 8.6)?
I only found the method “job.getProcessDefinitionVersion()” which returns the version number instead.

Thanks and kind regards,
Heiko

@HeikoSpindler In v8.6, Camunda 8 Rest api (/v2/) doesn’t provide an api to retrieve the process definitions.

image

Instead you need to rely on Operate api (/v1/process-definitions/:key) which will provide you the versionTag information.

From v8.7 onwards Camunda 8 Rest api (/v2/resources/:resourceKey) provides an Get Resource api to retrieve versionTag details.