From 550073b7a19025c6c3a0005787b50e9c5ef29e73 Mon Sep 17 00:00:00 2001 From: kjvdheide Date: Thu, 1 Feb 2018 17:06:03 +0000 Subject: [PATCH] JAL-2890 made the submitted job a class value and added getter for it --- src/jalview/ext/cipres/TreeJob.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/jalview/ext/cipres/TreeJob.java b/src/jalview/ext/cipres/TreeJob.java index 6ad8033..5977a67 100644 --- a/src/jalview/ext/cipres/TreeJob.java +++ b/src/jalview/ext/cipres/TreeJob.java @@ -18,6 +18,8 @@ public class TreeJob private final CiApplication app = CiApplication.getInstance(); + private CiJob submittedJob; + private String tool; private Map> vParams = new HashMap<>(); @@ -178,7 +180,7 @@ public class TreeJob */ public CiJob submitJob(String toolName) { - CiJob submittedJob = null; + if (!paramsValidated) { // validate before running some expensive job first. @@ -196,6 +198,7 @@ public class TreeJob { submittedJob = cipresClient .submitJob(toolName, vParams, inputParams, metadata); + } catch (CiCipresException ce) { ErrorData ed = ce.getErrorData(); @@ -216,5 +219,9 @@ public class TreeJob return submittedJob; } + public CiJob getSubmittedJob() + { + return submittedJob; + } } -- 1.7.10.2