private final CiApplication app = CiApplication.getInstance();
+ private CiJob submittedJob;
+
private String tool;
private Map<String, Collection<String>> vParams = new HashMap<>();
*/
public CiJob submitJob(String toolName)
{
- CiJob submittedJob = null;
+
if (!paramsValidated)
{
// validate before running some expensive job first.
{
submittedJob = cipresClient
.submitJob(toolName, vParams, inputParams, metadata);
+
} catch (CiCipresException ce)
{
ErrorData ed = ce.getErrorData();
return submittedJob;
}
+ public CiJob getSubmittedJob()
+ {
+ return submittedJob;
+ }
}