As we transition to the new Hyland Community, some post links may be temporarily disrupted as we finalize redirects. We apologize for the inconvenience and are working to resolve this as quickly as possible. Details.
String deploymentId = activitiRule.getRepositoryService() .createDeployment() .addClasspathResource("diagrams/my-process.bpmn") .tenantId(tenantId) .deploy() .getId();
activitiRule.getRepositoryService().deleteDeployment(deploymentId, true);
It appears a tenant ID cannot be specified in the @Deployment declaration, correct?
Is this the best way to deploy a process for a specific tenant in a JUnit test?
Is there a more elegant solution that someone has come up with to ensure all @Test methods start with a nice clean instance of the repository?