Search in sources :

Example 1 with CloseCaseCommand

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));
}
Also used : ProcessInstanceDesc(org.jbpm.services.api.model.ProcessInstanceDesc) CloseCaseCommand(org.jbpm.casemgmt.impl.command.CloseCaseCommand)

Aggregations

CloseCaseCommand (org.jbpm.casemgmt.impl.command.CloseCaseCommand)1 ProcessInstanceDesc (org.jbpm.services.api.model.ProcessInstanceDesc)1