214215216217218219220221222223224225226227
jobId = jobId.replace(JOB_ID, ""); } idx = Integer.parseInt(jobId); } catch (Exception e) { throw new DagEngineException(ErrorCode.ETEST, jobId); } if (idx >= workflows.size()) { throw new DagEngineException(ErrorCode.ETEST, jobId); } return idx; }
160161162163164165166
throws DagEngineException { if (actionId.equals("ok") && externalStatus.equals("ok")) { properties = actionData; return; } throw new DagEngineException(ErrorCode.ETEST, actionId); }
216217218219220221222223224225226227228229
144145146147148149150151152153
engine.getJob(jobId).getStatus(); fail("Job should be purged. Should fail."); } catch (Exception ex) { assertEquals(ex.getClass(), DagEngineException.class); DagEngineException dex = (DagEngineException) ex; assertEquals(ErrorCode.E0604, dex.getErrorCode()); } }
141142143144145146147148149150
153154155156157158159
204205206207208209210211212213214215216217