return response;
}
private BaseResponseObject handleUpdateExecutionContext(UpdateExecutionContextReq request) {
UpdateExecutionContextRes response = null;
try {
if(request.stepExecution != null) {
StepExecution stepExecution = JobRepositoryRpcFactory.convertStepExecutionType(request.stepExecution);
jobRepository.updateExecutionContext(stepExecution);
} else if(request.jobExecution != null) {
JobExecution jobExecution = JobRepositoryRpcFactory.convertJobExecutionType(request.jobExecution);
jobRepository.updateExecutionContext(jobExecution);
}
response = new UpdateExecutionContextRes();
} catch (Exception e) {
log.error("error handling command", e);
}
return response;
}