snippets/dynamic-multi-tenancy/tenantdemo-process-application/src/main/java/com/camunda/demo/tenant/pa/ExampleTenantAwareProcessApplication.java
@PostDeploy
  public void deployProcessesToTenantEngines() {
    // copy the process definitions deployed to the default engine to all tenants
    for (ProcessEngine processEngine : BpmPlatform.getProcessEngineService().getProcessEngines()) {
      if (processEngine != BpmPlatform.getDefaultProcessEngine()) {
        TenantManager.deployDefaultProcessesToEngine(processEngine);
      }
    }
  }
@PostDeploy
  public void deployProcessesToTenantEngines() {
    // copy the process definitions deployed to the default engine to all tenants
    for (ProcessEngine processEngine : BpmPlatform.getProcessEngineService().getProcessEngines()) {
      if (processEngine != BpmPlatform.getDefaultProcessEngine()) {
        TenantManager.deployDefaultProcessesToEngine(processEngine);
      }
    }
  }
private static final String PROCESS_DEFINITION_KEY = "tenantdemo-process-application";