@Override public void updateExternalExecutionId(long taskExecutionId, String externalExecutionId) { TaskExecution taskExecution = taskExecutions.get(taskExecutionId); Assert.notNull(taskExecution, "Invalid TaskExecution, ID " + taskExecutionId + " not found."); taskExecution.setExternalExecutionId(externalExecutionId); }
@Override public void updateExternalExecutionId(long taskExecutionId, String externalExecutionId) { TaskExecution taskExecution = taskExecutions.get(taskExecutionId); Assert.notNull(taskExecution, "Invalid TaskExecution, ID " + taskExecutionId + " not found."); taskExecution.setExternalExecutionId(externalExecutionId); }
@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; }
taskExecution.setStartTime(new Date()); taskExecution.setArguments(args); taskExecution.setExternalExecutionId(this.taskProperties.getExternalExecutionId()); taskExecution.setParentExecutionId(this.taskProperties.getParentExecutionId()); this.taskExecution = this.taskRepository.createTaskExecution(
taskExecution.setStartTime(new Date()); taskExecution.setArguments(args); taskExecution.setExternalExecutionId(this.taskProperties.getExternalExecutionId()); taskExecution.setParentExecutionId(this.taskProperties.getParentExecutionId()); this.taskExecution = this.taskRepository.createTaskExecution(