11-21-2011 03:21 PM
/** Deletes the given deployment.
* @param deploymentId id of the deployment, cannot be null.
* @throwns RuntimeException if there are still runtime or history process
* instances or jobs.
*/
void deleteDeployment(String deploymentId);
/**
* Deletes the given deployment and cascade deletion to process instances,
* history process instances and jobs.
* @param deploymentId id of the deployment, cannot be null.
* @deprecated use {@link #deleteDeployment(String, boolean)}. This methods may be deleted from 5.3.
*/
void deleteDeploymentCascade(String deploymentId);
/**
* Deletes the given deployment and cascade deletion to process instances,
* history process instances and jobs.
* @param deploymentId id of the deployment, cannot be null.
*/
void deleteDeployment(String deploymentId, boolean cascade);
do not report any error when you pass them a deploymentId that does not exist.
public void testDeleteDeploymentWithNonExistingDeploymentId() {
String deploymentId = "NonExistingDeploymentId";
try {
repositoryService.deleteDeployment(deploymentId);
fail("ActivitiException expected");
} catch (ActivitiException ae) {
assertTextPresent("Unable to find a deployment with deploymentId '" + deploymentId + "'", ae.getMessage());
}
}
11-25-2011 12:22 PM
12-12-2011 10:27 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.