use of org.jbpm.kie.services.impl.admin.commands.RemoveTaskDataCommand in project jbpm by kiegroup.
the class UserTaskAdminServiceImpl method removeTaskInputs.
@Override
public void removeTaskInputs(String deploymentId, long taskId, String... name) throws TaskNotFoundException {
UserTaskInstanceDesc task = runtimeDataService.getTaskById(taskId);
validateTask(deploymentId, taskId, task);
userTaskService.execute(task.getDeploymentId(), ProcessInstanceIdContext.get(task.getProcessInstanceId()), new RemoveTaskDataCommand(identityProvider.getName(), taskId, Arrays.asList(name), true));
}
use of org.jbpm.kie.services.impl.admin.commands.RemoveTaskDataCommand in project jbpm by kiegroup.
the class UserTaskAdminServiceImpl method removeTaskOutputs.
@Override
public void removeTaskOutputs(String deploymentId, long taskId, String... name) throws TaskNotFoundException {
UserTaskInstanceDesc task = runtimeDataService.getTaskById(taskId);
validateTask(deploymentId, taskId, task);
userTaskService.execute(task.getDeploymentId(), ProcessInstanceIdContext.get(task.getProcessInstanceId()), new RemoveTaskDataCommand(identityProvider.getName(), taskId, Arrays.asList(name), false));
}
Aggregations