Skip to content
Permalink
Browse files
BATCHEE-55 RI Bug 5806 - JobExecution returned by jobOperator.getJobE…
…xecutions(jobInstance) has null parameters. Thanks Scott for the patch.
  • Loading branch information
rmannibucau committed Nov 18, 2014
1 parent 39fd1f2 commit ab1ef84fba7bf98c646b8b683173147ba21b0638
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
@@ -974,6 +974,8 @@ public List<InternalJobExecution> jobOperatorGetJobExecutions(final long jobInst
final String batchStatus = rs.getString(dictionary.jobExecutionColumns(1));
final String exitStatus = rs.getString(dictionary.jobExecutionColumns(4));
final String jobName = rs.getString(dictionary.jobInstanceColumns(3));
final byte[] buf = rs.getBytes(dictionary.jobExecutionColumns(5));
final Properties params = buf != null ? PropertyHelper.stringToProperties(new String(buf)) : null;

final JobExecutionImpl jobEx = new JobExecutionImpl(jobExecutionId, jobInstanceId, this);
jobEx.setCreateTime(createtime);
@@ -983,6 +985,7 @@ public List<InternalJobExecution> jobOperatorGetJobExecutions(final long jobInst
jobEx.setBatchStatus(batchStatus);
jobEx.setExitStatus(exitStatus);
jobEx.setJobName(jobName);
jobEx.setJobParameters(params);

data.add(jobEx);
}
@@ -355,6 +355,7 @@ public List<InternalJobExecution> jobOperatorGetJobExecutions(final long jobInst
jobEx.setBatchStatus(entity.getBatchStatus().name());
jobEx.setExitStatus(entity.getExitStatus());
jobEx.setJobName(entity.getInstance().getName());
jobEx.setJobParameters(entity.getJobProperties());

result.add(jobEx);
}

0 comments on commit ab1ef84

Please sign in to comment.