jobContext.failure(jobIds[JOBS - 1], "something bad happended", null);
jobContext.failure(jobIds[JOBS - 1], "something bad happened", null);
    public void populateJobs(IRequestCycle cycle_) {        JobContext jobContext = getJobContext();        jobContext.clear();        Serializable[] jobIds = new Serializable[JOBS];        for (int i = 0; i < jobIds.length; i++) {            jobIds[i] = jobContext.schedule("test" + i);            if (i > 0) {                jobContext.start(jobIds[i]);            }        }        jobContext.success(jobIds[2]);        jobContext.failure(jobIds[JOBS - 1], "something bad happended", null);    }