private TaskExecution sanitizePotentialSensitiveKeys(TaskExecution taskExecution) { List<String> args = taskExecution.getArguments().stream() .map(argument -> (this.argumentSanitizer.sanitize(argument))).collect(Collectors.toList()); taskExecution.setArguments(args); return taskExecution; }
private TaskExecution sanitizePotentialSensitiveKeys(TaskExecution taskExecution) { List<String> args = taskExecution.getArguments().stream() .map(argument -> (this.argumentSanitizer.sanitize(argument))).collect(Collectors.toList()); taskExecution.setArguments(args); return taskExecution; }
@Override public TaskExecution startTaskExecution(long executionId, String taskName, Date startTime, List<String> arguments, String externalExecutionid, Long parentExecutionId) { TaskExecution taskExecution= taskExecutions.get(executionId); taskExecution.setTaskName(taskName); taskExecution.setStartTime(startTime); taskExecution.setArguments(arguments); taskExecution.setParentExecutionId(parentExecutionId); if(externalExecutionid != null) { taskExecution.setExternalExecutionId(externalExecutionid); } return taskExecution; }
@Override public TaskExecution startTaskExecution(long executionId, String taskName, Date startTime, List<String> arguments, String externalExecutionid, Long parentExecutionId) { TaskExecution taskExecution= taskExecutions.get(executionId); taskExecution.setTaskName(taskName); taskExecution.setStartTime(startTime); taskExecution.setArguments(arguments); taskExecution.setParentExecutionId(parentExecutionId); if(externalExecutionid != null) { taskExecution.setExternalExecutionId(externalExecutionid); } return taskExecution; }
@Override public TaskExecution getTaskExecution(long executionId) { final MapSqlParameterSource queryParameters = new MapSqlParameterSource() .addValue("taskExecutionId", executionId, Types.BIGINT); try { TaskExecution taskExecution = jdbcTemplate.queryForObject(getQuery(GET_EXECUTION_BY_ID), queryParameters, new TaskExecutionRowMapper()); taskExecution.setArguments(getTaskArguments(executionId)); return taskExecution; } catch (EmptyResultDataAccessException e) { return null; } }
@Override public TaskExecution getTaskExecution(long executionId) { final MapSqlParameterSource queryParameters = new MapSqlParameterSource() .addValue("taskExecutionId", executionId, Types.BIGINT); try { TaskExecution taskExecution = jdbcTemplate.queryForObject(getQuery(GET_EXECUTION_BY_ID), queryParameters, new TaskExecutionRowMapper()); taskExecution.setArguments(getTaskArguments(executionId)); return taskExecution; } catch (EmptyResultDataAccessException e) { return null; } }
taskExecution.setTaskName(this.taskNameResolver.getTaskName()); taskExecution.setStartTime(new Date()); taskExecution.setArguments(args); taskExecution.setExternalExecutionId(this.taskProperties.getExternalExecutionId()); taskExecution.setParentExecutionId(this.taskProperties.getParentExecutionId());
taskExecution.setTaskName(this.taskNameResolver.getTaskName()); taskExecution.setStartTime(new Date()); taskExecution.setArguments(args); taskExecution.setExternalExecutionId(this.taskProperties.getExternalExecutionId()); taskExecution.setParentExecutionId(this.taskProperties.getParentExecutionId());