1 package org.jbpm.bpel.exe.state; 2 3 import org.jbpm.bpel.exe.ScopeInstance; 4 5 9 public class EndedState extends ScopeState { 10 11 private static final long serialVersionUID = 1L; 12 13 public static final EndedState TERMINATED = new EndedState("terminated", 13); 14 15 public static final EndedState COMPENSATED = new EndedState("compensated", 14); 16 17 public static final EndedState COMPLETED = new EndedState("completed", 15) { 18 19 private static final long serialVersionUID = 1L; 20 21 public void compensate(ScopeInstance scope) { 22 CompensatingState.enterCompensating(scope); 23 } 24 }; 25 26 public static final EndedState COMPLETED_ABNORMALLY = new EndedState("completedAbnormally", 16); 27 28 public static final EndedState FAULTED = new EndedState("faulted", 17); 29 30 public static final EndedState EXITED = new EndedState("exited", 18); 31 32 protected EndedState(String name, int code) { 33 super(name, code); 34 } 35 } 36 | Popular Tags |