pipeline.init(); } catch (PipelineException e) { setWorkflowStatus(WorkflowRunStatusType.FAILED); pipeline.validate(); } catch (PipelineException e) { setWorkflowStatus(WorkflowRunStatusType.FAILED); pipeline.preRun(); } catch (PipelineException e) { setWorkflowStatus(WorkflowRunStatusType.FAILED); CondorJob condorJob = pipeline.call(); ScheduledExecutorService scheduler = Executors.newScheduledThreadPool(2); StartCondorMonitor startCondorMonitor = new StartCondorMonitor(this, condorJob); pipeline.postRun(); } catch (PipelineException e) { setWorkflowStatus(WorkflowRunStatusType.FAILED);
WorkflowRunStatusType status = (WorkflowRunStatusType) arg; if (WorkflowRunStatusType.DONE.equals(status) || WorkflowRunStatusType.FAILED.equals(status)) { WorkflowPlan workflowPlan = pipelineExecutor.getPipeline().getWorkflowPlan(); if (workflowPlan != null) { WorkflowRun workflowRun = workflowPlan.getWorkflowRun(); message.addRecipient(Message.RecipientType.TO, new InternetAddress(toEmailAddress)); message.setSubject(String.format("The %s pipeline has finished.", pipelineExecutor .getPipeline().getName())); StringBuilder sb = new StringBuilder(); sb.append(String.format("WorkflowRun Name: %s%n", workflowRun.getName()));
PipelineExecutor pipelineExecutor = (PipelineExecutor) o; WorkflowRunStatusType status = (WorkflowRunStatusType) arg; WorkflowRunDAO workflowRunDAO = pipelineExecutor.getPipeline().getPipelineBeanService().getMaPSeqDAOBean() .getWorkflowRunDAO(); try { WorkflowRun workflowRun = workflowRunDAO.findById(pipelineExecutor.getPipeline().getWorkflowPlan() .getWorkflowRun().getId()); pipelineExecutor.getPipeline().getWorkflowPlan().setWorkflowRun(workflowRun);