use of org.jbpm.casemgmt.impl.command.CloseCaseCommand in project jbpm by kiegroup.
the class CaseServiceImpl method closeCase.
@Override
public void closeCase(String caseId, String comment) throws CaseNotFoundException {
authorizationManager.checkOperationAuthorization(caseId, ProtectedOperation.CLOSE_CASE);
logger.debug("About to close case {} with comment {}", caseId, comment);
ProcessInstanceDesc pi = verifyCaseIdExists(caseId);
processService.execute(pi.getDeploymentId(), ProcessInstanceIdContext.get(pi.getId()), new CloseCaseCommand(identityProvider, pi.getDeploymentId(), caseId, comment, processService, runtimeDataService));
}
Aggregations