public boolean complete() { processTaskInfo = null; Log.getLogger(Config.FLOW).warn("Process " + id + " complete."); status = Status.COMPLETE; Scheduler.saveProcessState(this); return true; }
public boolean stop() { try { scheduler.stop(); status = Status.STOP; Scheduler.saveProcessState(this); } catch (Exception e) { return false; } return true; }
public boolean resume() { try { scheduler.resume(); Log.getLogger(Config.FLOW).info("Process " + id + " resume."); status = Status.RUNNING; Scheduler.saveProcessState(this); } catch (Exception e) { return false; } return true; }
public boolean suspend() { try { scheduler.suspend(); Log.getLogger(Config.FLOW).info("Process " + id + " suspend."); status = Status.SUSPEND; Scheduler.saveProcessState(this); } catch (Exception e) { return false; } return true; }