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