parameterMap.put(entry.getKey(),
entry.getValue().toArray(new String[0]));
}
try {
new CompleteTaskOperation().execute(parameterMap);
} catch (IllegalStateException ex) {
logger.error(ex.getMessage(), ex);
messageHelper.addFlashMessage(redirectAttributes, ex.getMessage());
return "redirect:/bpm/workspace-listPersonalTasks.do";