use of org.jbpm.casemgmt.impl.command.CancelCaseCommand in project jbpm by kiegroup.
the class CaseServiceImpl method destroyCase.
@Override
public void destroyCase(String caseId) throws CaseNotFoundException {
authorizationManager.checkOperationAuthorization(caseId, ProtectedOperation.DESTROY_CASE);
logger.debug("About to destroy permanently case {}", caseId);
ProcessInstanceDesc pi = verifyCaseIdExisted(caseId);
processService.execute(pi.getDeploymentId(), ProcessInstanceIdContext.get(pi.getId()), new CancelCaseCommand(identityProvider, caseId, processService, runtimeDataService, true));
}
use of org.jbpm.casemgmt.impl.command.CancelCaseCommand in project jbpm by kiegroup.
the class CaseServiceImpl method cancelCase.
@Override
public void cancelCase(String caseId) throws CaseNotFoundException {
authorizationManager.checkOperationAuthorization(caseId, ProtectedOperation.CANCEL_CASE);
logger.debug("About to abort case {}", caseId);
ProcessInstanceDesc pi = verifyCaseIdExists(caseId);
processService.execute(pi.getDeploymentId(), ProcessInstanceIdContext.get(pi.getId()), new CancelCaseCommand(identityProvider, caseId, processService, runtimeDataService, false));
}
Aggregations