I want to populate an external system with reference data of processes, statuses and human tasks in a BPMN model, preferably at deployment time.
For runtime, I have used the BpmnParseListener to add execution listeners to notify the external system of status updates and task updates.
Now, I would like to add the definitions of statuses and human tasks. But for that I need the tenant id under which the deployment is added. All BPMNs will be deployed under a specific tenant, so I thought that somehow I would be able to query this tenantId in the parseListener somewhere. But I do not seem to be able to: processDefinition.getTenantId() yields to NULL in the parseProcess function.
Any insights in this?