-
Feature Request
-
Resolution: Done
-
L3 - Default
-
None
I can extend the process engine such that
- I can programmatically decide which resources get deployed (when duplicate filtering is enabled)
- I can programmatically decide which deployments get resumed (when resuming is enabled)
Could be a handler that can be set via the engine configuration. The handler interface can look like this:
package org.camunda.bpm; import java.util.Collection; import org.camunda.bpm.engine.repository.Deployment; import org.camunda.bpm.engine.repository.Resource; public interface DeploymentHandler { /** * @param newResource the resource to be deployed * @param existingResource most recently deployed resource that has the same resource name * and deployment name * @return true, if the resource should be deployed */ boolean shouldDeployResource(Resource newResource, Resource existingResource); /** * @param baseDeployment the new deployment, or, if no new resources are being deployed, * the most recent deployment of the same name * @return the IDs of deployments that should be resumed (registered with the job executor * and registered for the deploying process application) */ Collection<String> determineDeploymentsToResume(Deployment baseDeployment); }