private Table createJobExecutionsTable(Collection<JobExecutionInfoResource> jobExecutions) {

		final Table table = new Table();
		table.addHeader(1, new TableHeader("Id"))
				.addHeader(2, new TableHeader("Job Name"))
				.addHeader(3, new TableHeader("Start Time"))
				.addHeader(4, new TableHeader("Step Execution Count"))
				.addHeader(5, new TableHeader("Execution Status"))
				.addHeader(6, new TableHeader("Deployment Status"))
				.addHeader(7, new TableHeader("Definition Status"))
				.addHeader(8, new TableHeader("Composed"));

		for (JobExecutionInfoResource jobExecutionInfoResource : jobExecutions) {
			final TableRow row = new TableRow();
			final String startTimeAsString = this.configuration.getLocalTime(jobExecutionInfoResource.getJobExecution().getStartTime());

			row.addValue(1, String.valueOf(jobExecutionInfoResource.getExecutionId()))
					.addValue(2, jobExecutionInfoResource.getName())
					.addValue(3, startTimeAsString)
					.addValue(4, String.valueOf(jobExecutionInfoResource.getStepExecutionCount()))
					.addValue(5, jobExecutionInfoResource.getJobExecution().getStatus().name())
					.addValue(6, (jobExecutionInfoResource.isDeployed()) ? "Deployed" : "Undeployed")
					.addValue(7, (jobExecutionInfoResource.isDeleted()) ? "Destroyed" : "Exists")
					.addValue(8, (jobExecutionInfoResource.isComposedJob()) ? "   *" : "");
			table.getRows().add(row);
		}
 
		return table;
	}
Job commands.

@author Glenn Renfro
@author Ilayaperumal Gopinathan
@author Gunnar Hillert
@author Eric Bottard
spring-xd-shell/src/main/java/org/springframework/xd/shell/command/JobCommands.java