Esempio n. 1
0
 public boolean complete() {
   processTaskInfo = null;
   Log.getLogger(Config.FLOW).warn("Process " + id + " complete.");
   status = Status.COMPLETE;
   Scheduler.saveProcessState(this);
   return true;
 }
Esempio n. 2
0
 public boolean stop() {
   try {
     scheduler.stop();
     status = Status.STOP;
     Scheduler.saveProcessState(this);
   } catch (Exception e) {
     return false;
   }
   return true;
 }
Esempio n. 3
0
 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;
 }
Esempio n. 4
0
 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;
 }