public void completeTask(String taskId, String outcome, Map<String, Object> variables) {
SetTaskVariablesCmd setTaskVariablesCmd = new SetTaskVariablesCmd(taskId);
setTaskVariablesCmd.setVariables(variables);
CompositeCmd compositeCmd = new CompositeCmd();
compositeCmd.addCommand(setTaskVariablesCmd);
compositeCmd.addCommand(new CompleteTaskCmd(taskId, outcome));
commandService.execute(compositeCmd);
}