return ApplicationJobStatus.UNKNOWN;
}
private void saveApplicationJob(JobExecutionContext jobExecutionContext, JobDefinitionType jobDefinition,
String metadata) {
ApplicationJob appJob = GFacUtils.createApplicationJob(jobExecutionContext);
appJob.setJobId(jobId);
appJob.setJobData(jobDefinition.toString());
appJob.setSubmittedTime(Calendar.getInstance().getTime());
appJob.setStatus(ApplicationJobStatus.SUBMITTED);
appJob.setStatusUpdateTime(appJob.getSubmittedTime());
appJob.setMetadata(metadata);
GFacUtils.recordApplicationJob(jobExecutionContext, appJob);
}