req.stepExecution = JobRepositoryRpcFactory.convertStepExecutionType(stepExecution);
return req;
}
public static GetLastJobExecutionReq buildGetLastJobExecutionReq(String jobName, JobParameters jobParameters) {
GetLastJobExecutionReq req = new GetLastJobExecutionReq();
Map<String, JobParameterType> map = new HashMap<String, JobParameterType>();
for(Entry<String, JobParameter> parameter : jobParameters.getParameters().entrySet()) {
JobParameterType type = new JobParameterType();
type.parameter = parameter.getValue().getValue();
type.parameterType = parameter.getValue().getType();