/** * Return the trigger state of the given {@link com.xpn.xwiki.plugin.scheduler.SchedulerPlugin#XWIKI_JOB_CLASS} * XObject job. Possible values are : None (the trigger does not exists yet, or has been deleted), Normal, Blocked, * Complete, Error and Paused * * @param object the XObject job to give the state of * @return a String representing this state */ public String getStatus(Object object) { try { return getJobStatus(object.getXWikiObject()).getValue(); } catch (Exception e) { this.context.put("error", e.getMessage()); return null; } }
/** * Return the trigger state of the given {@link com.xpn.xwiki.plugin.scheduler.SchedulerPlugin#XWIKI_JOB_CLASS} * XObject job. Possible values are : None (the trigger does not exists yet, or has been deleted), Normal, Blocked, * Complete, Error and Paused * * @param object the XObject job to give the state of * @return a String representing this state */ public String getStatus(Object object) { try { return getJobStatus(object.getXWikiObject()).getValue(); } catch (Exception e) { this.context.put("error", e.getMessage()); return null; } }