@Override public Void execute(CommandContext commandContext) { super.execute(commandContext); task.createHistoricTaskDetails(UserOperationLogEntry.OPERATION_TYPE_ASSIGN); return null; } }
@Override public Void execute(CommandContext commandContext) { super.execute(commandContext); task.createHistoricTaskDetails(UserOperationLogEntry.OPERATION_TYPE_SET_OWNER); return null; } }
@Override public Void execute(CommandContext commandContext) { super.execute(commandContext); task.createHistoricTaskDetails(UserOperationLogEntry.OPERATION_TYPE_ASSIGN); return null; } }
@Override protected void completeTask(TaskEntity task) { task.resolve(); task.createHistoricTaskDetails(UserOperationLogEntry.OPERATION_TYPE_RESOLVE); } }
@Override public Void execute(CommandContext commandContext) { super.execute(commandContext); task.createHistoricTaskDetails(UserOperationLogEntry.OPERATION_TYPE_SET_OWNER); return null; } }
@Override protected void completeTask(TaskEntity task) { task.resolve(); task.createHistoricTaskDetails(UserOperationLogEntry.OPERATION_TYPE_RESOLVE); } }
public Void execute(CommandContext commandContext) { ensureNotNull("taskId", taskId); TaskManager taskManager = commandContext.getTaskManager(); TaskEntity task = taskManager.findTaskById(taskId); ensureNotNull("Cannot find task with id " + taskId, "task", task); checkTaskPriority(task, commandContext); task.setPriority(priority); task.createHistoricTaskDetails(UserOperationLogEntry.OPERATION_TYPE_SET_PRIORITY); return null; }
public Object execute(CommandContext commandContext) { ensureNotNull("taskId", taskId); TaskManager taskManager = commandContext.getTaskManager(); TaskEntity task = taskManager.findTaskById(taskId); ensureNotNull("Cannot find task with id " + taskId, "task", task); checkDelegateTask(task, commandContext); task.delegate(userId); task.createHistoricTaskDetails(UserOperationLogEntry.OPERATION_TYPE_DELEGATE); return null; }
public Object execute(CommandContext commandContext) { ensureNotNull("taskId", taskId); TaskManager taskManager = commandContext.getTaskManager(); TaskEntity task = taskManager.findTaskById(taskId); ensureNotNull("Cannot find task with id " + taskId, "task", task); checkDelegateTask(task, commandContext); task.delegate(userId); task.createHistoricTaskDetails(UserOperationLogEntry.OPERATION_TYPE_DELEGATE); return null; }
public Void execute(CommandContext commandContext) { ensureNotNull("taskId", taskId); TaskManager taskManager = commandContext.getTaskManager(); TaskEntity task = taskManager.findTaskById(taskId); ensureNotNull("Cannot find task with id " + taskId, "task", task); checkTaskPriority(task, commandContext); task.setPriority(priority); task.createHistoricTaskDetails(UserOperationLogEntry.OPERATION_TYPE_SET_PRIORITY); return null; }
.markTaskInstanceEnded(taskId, deleteReason); if (TaskEntity.DELETE_REASON_COMPLETED.equals(deleteReason)) { task.createHistoricTaskDetails(UserOperationLogEntry.OPERATION_TYPE_COMPLETE); } else { task.createHistoricTaskDetails(UserOperationLogEntry.OPERATION_TYPE_DELETE);
.markTaskInstanceEnded(taskId, deleteReason); if (TaskEntity.DELETE_REASON_COMPLETED.equals(deleteReason)) { task.createHistoricTaskDetails(UserOperationLogEntry.OPERATION_TYPE_COMPLETE); } else { task.createHistoricTaskDetails(UserOperationLogEntry.OPERATION_TYPE_DELETE);
task.createHistoricTaskDetails(UserOperationLogEntry.OPERATION_TYPE_RESOLVE); } else { task.complete(); task.createHistoricTaskDetails(UserOperationLogEntry.OPERATION_TYPE_COMPLETE);
task.createHistoricTaskDetails(UserOperationLogEntry.OPERATION_TYPE_RESOLVE); } else { task.complete(); task.createHistoricTaskDetails(UserOperationLogEntry.OPERATION_TYPE_COMPLETE);
public Void execute(CommandContext commandContext) { ensureNotNull("taskId", taskId); TaskManager taskManager = commandContext.getTaskManager(); TaskEntity task = taskManager.findTaskById(taskId); ensureNotNull("Cannot find task with id " + taskId, "task", task); checkClaimTask(task, commandContext); if (userId != null) { if (task.getAssignee() != null) { if (!task.getAssignee().equals(userId)) { // When the task is already claimed by another user, throw exception. Otherwise, ignore // this, post-conditions of method already met. throw new TaskAlreadyClaimedException(task.getId(), task.getAssignee()); } } else { task.setAssignee(userId); } } else { // Task should be assigned to no one task.setAssignee(null); } task.createHistoricTaskDetails(UserOperationLogEntry.OPERATION_TYPE_CLAIM); return null; }
public Void execute(CommandContext commandContext) { ensureNotNull("taskId", taskId); TaskManager taskManager = commandContext.getTaskManager(); TaskEntity task = taskManager.findTaskById(taskId); ensureNotNull("Cannot find task with id " + taskId, "task", task); checkClaimTask(task, commandContext); if (userId != null) { if (task.getAssignee() != null) { if (!task.getAssignee().equals(userId)) { // When the task is already claimed by another user, throw exception. Otherwise, ignore // this, post-conditions of method already met. throw new TaskAlreadyClaimedException(task.getId(), task.getAssignee()); } } else { task.setAssignee(userId); } } else { // Task should be assigned to no one task.setAssignee(null); } task.createHistoricTaskDetails(UserOperationLogEntry.OPERATION_TYPE_CLAIM); return null; }
public Void execute(CommandContext commandContext) { ensureNotNull("task", task); String operation; if (task.getRevision() == 0) { try { checkCreateTask(task, commandContext); task.insert(null); commandContext.getHistoricTaskInstanceManager().createHistoricTask(task); operation = UserOperationLogEntry.OPERATION_TYPE_CREATE; task.executeMetrics(Metrics.ACTIVTY_INSTANCE_START); } catch (NullValueException e) { throw new NotValidException(e.getMessage(), e); } } else { checkTaskAssign(task, commandContext); task.update(); operation = UserOperationLogEntry.OPERATION_TYPE_UPDATE; } task.fireAuthorizationProvider(); task.fireEvents(); task.createHistoricTaskDetails(operation); return null; }
public Void execute(CommandContext commandContext) { ensureNotNull("task", task); String operation; if (task.getRevision() == 0) { try { checkCreateTask(task, commandContext); task.insert(null); commandContext.getHistoricTaskInstanceManager().createHistoricTask(task); operation = UserOperationLogEntry.OPERATION_TYPE_CREATE; task.executeMetrics(Metrics.ACTIVTY_INSTANCE_START); } catch (NullValueException e) { throw new NotValidException(e.getMessage(), e); } } else { checkTaskAssign(task, commandContext); task.update(); operation = UserOperationLogEntry.OPERATION_TYPE_UPDATE; } task.fireAuthorizationProvider(); task.fireEvents(); task.createHistoricTaskDetails(operation); return null; }
@Override public Void execute(CommandContext commandContext) { super.execute(commandContext); task.createHistoricTaskDetails(UserOperationLogEntry.OPERATION_TYPE_SET_OWNER); return null; } }
public Object execute(CommandContext commandContext) { ensureNotNull("taskId", taskId); TaskManager taskManager = commandContext.getTaskManager(); TaskEntity task = taskManager.findTaskById(taskId); ensureNotNull("Cannot find task with id " + taskId, "task", task); checkDelegateTask(task, commandContext); task.delegate(userId); task.createHistoricTaskDetails(UserOperationLogEntry.OPERATION_TYPE_DELEGATE); return null; }