cmd = new DelegateTaskCommand(taskId, userId, targetEntityId);
} else if ("exit".equalsIgnoreCase(operation)) {
cmd = new ExitTaskCommand(taskId, userId);
} else if ("fail".equalsIgnoreCase(operation)) {
Map<String, Object> data = extractMapFromParams(params, oper);
cmd = new FailTaskCommand(taskId, userId, data);
} else if ("forward".equalsIgnoreCase(operation)) {
String targetEntityId = getStringParam("targetEntityId", true, params, oper);
cmd = new ForwardTaskCommand(taskId, userId, targetEntityId);
} else if ("release".equalsIgnoreCase(operation)) {
cmd = new ReleaseTaskCommand(taskId, userId);