Hey Folks,
We have a scenario where we allow Users to delete deployments via a button and also through the Camunda REST API ( DELETE /deployment/{id}
). For delete deployments, via the button, we are using the below method,
ProcessEngines.getDefaultProcessEngine().getRepositoryService().deleteDeployment(parameters.get("DeploymentId").toString(), true);
We have a requirement to write custom validation for both the above scenarios(via a button or via the REST API for delete deployments).
Appreciate it if you could provide any suggestions for the above requirement.
Thank you in advance for the support !