예제 #1
0
 public void persistWorkFlowJob() throws IOException {
   File workFlowStatusFile =
       new File(configuration.getJobFSConfig().getWorkflowJobStatusPath(this.workFlowId));
   if (!workFlowStatusFile.exists())
     FileHelper.createFilePath(workFlowStatusFile.getAbsolutePath());
   objectMapper
       .writerWithDefaultPrettyPrinter()
       .writeValue(new FileOutputStream(workFlowStatusFile), this);
 }