{
final MessageParam[] result = new MessageParam[3];
if (taskTree != null && this.taskId != null) {
final TaskDO task = taskTree.getTaskById(taskId);
if (task != null) {
result[0] = new MessageParam(task.getTitle());
} else {
result[0] = new MessageParam(taskId);
}
} else {
result[0] = new MessageParam(taskId);
}
if (accessType != null) {
result[1] = new MessageParam(accessType.getI18nKey(), MessageParamType.I18N_KEY);
}
if (operationType != null) {
result[2] = new MessageParam(operationType.getI18nKey(), MessageParamType.I18N_KEY);
}
return result;
}