When doing a ProcessDefinitionQuery and specifying that i want the latest revision, this is managed per key of the processdefinition.
This doesn't work when two tenants deploy a process with the same key. In this case, only the processdefinition with the latest revision is returned. As such, for the tenant with the lower revision, his processdefinition is missing.
In the mapping file:
could the query selectProcessDefinitionsByQueryCriteriaSql be corrected by modifying the latest part as such:
With this, the latest revision would be per tenant, per key. So the processDefinition of the second tenant isn't missing.