Search in sources :

Example 1 with RemoveDataCaseFileInstanceCommand

use of org.jbpm.casemgmt.impl.command.RemoveDataCaseFileInstanceCommand in project jbpm by kiegroup.

the class CaseServiceImpl method removeDataFromCaseFile.

@Override
public void removeDataFromCaseFile(String caseId, List<String> variableNames) throws CaseNotFoundException {
    authorizationManager.checkOperationAuthorization(caseId, ProtectedOperation.REMOVE_DATA);
    ProcessInstanceDesc pi = verifyCaseIdExists(caseId);
    processService.execute(pi.getDeploymentId(), ProcessInstanceIdContext.get(pi.getId()), new RemoveDataCaseFileInstanceCommand(identityProvider, variableNames, authorizationManager));
}
Also used : RemoveDataCaseFileInstanceCommand(org.jbpm.casemgmt.impl.command.RemoveDataCaseFileInstanceCommand) ProcessInstanceDesc(org.jbpm.services.api.model.ProcessInstanceDesc)

Example 2 with RemoveDataCaseFileInstanceCommand

use of org.jbpm.casemgmt.impl.command.RemoveDataCaseFileInstanceCommand in project jbpm by kiegroup.

the class CaseServiceImpl method removeDataFromCaseFile.

@Override
public void removeDataFromCaseFile(String caseId, String name) throws CaseNotFoundException {
    authorizationManager.checkOperationAuthorization(caseId, ProtectedOperation.REMOVE_DATA);
    ProcessInstanceDesc pi = verifyCaseIdExists(caseId);
    processService.execute(pi.getDeploymentId(), ProcessInstanceIdContext.get(pi.getId()), new RemoveDataCaseFileInstanceCommand(identityProvider, Arrays.asList(name), authorizationManager));
}
Also used : RemoveDataCaseFileInstanceCommand(org.jbpm.casemgmt.impl.command.RemoveDataCaseFileInstanceCommand) ProcessInstanceDesc(org.jbpm.services.api.model.ProcessInstanceDesc)

Aggregations

RemoveDataCaseFileInstanceCommand (org.jbpm.casemgmt.impl.command.RemoveDataCaseFileInstanceCommand)2 ProcessInstanceDesc (org.jbpm.services.api.model.ProcessInstanceDesc)2