response.count = stepExecutionCount;
return response;
}
private BaseResponseObject handleGetLastStepExecutionReq(GetLastStepExecutionReq request) {
GetLastStepExecutionRes response = null;
JobInstance jobInstance = JobRepositoryRpcFactory.convertJobInstanceType(request.jobInstance);
StepExecution lastStepExecution = jobRepository.getLastStepExecution(jobInstance, request.stepName);
response = new GetLastStepExecutionRes();
response.stepExecution = JobRepositoryRpcFactory.convertStepExecutionType(lastStepExecution);
return response;
}