Skip to content

Commit

Permalink
Updated delegate to any
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexPowerPA committed Nov 6, 2020
1 parent 3074735 commit 7a8b7e7
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,15 @@ public DarDelegateTasksDto managerDelegateTask(String businessKey, String review
for (Task t : userTasks) {
delegateTasks.add(t.getName());
taskService.setAssignee(t.getId(), managerId);

// Uncomment the below if you wish to complete the task after delegation
/**
* Map<String, Object> processVars = new HashMap<>();
* processVars.put("managerApproved", true);
* taskService.delegateTask(t.getId(), managerId);
* taskService.complete(t.getId(), processVars);
* */

}

// Return a new DTO with a list of;
Expand Down

0 comments on commit 7a8b7e7

Please sign in to comment.