1 25 package org.ofbiz.workflow; 26 27 import java.sql.Timestamp ; 28 import java.util.Iterator ; 29 import java.util.List ; 30 import java.util.Map ; 31 32 import org.ofbiz.entity.GenericDelegator; 33 import org.ofbiz.entity.GenericValue; 34 35 42 public interface WfExecutionObject { 43 44 48 public List workflowStateType() throws WfException; 49 50 54 public List whileOpenType() throws WfException; 55 56 60 public List whyNotRunningType() throws WfException; 61 62 66 public List howClosedType() throws WfException; 67 68 73 public List validStates() throws WfException; 74 75 80 public String state() throws WfException; 81 82 89 public void changeState(String newState) throws WfException, InvalidState, TransitionNotAllowed; 90 91 96 public String name() throws WfException; 97 98 103 public void setName(String newValue) throws WfException; 104 105 109 public String runtimeKey() throws WfException; 110 111 116 public String key() throws WfException; 117 118 123 public String description() throws WfException; 124 125 130 public void setDescription(String newValue) throws WfException; 131 132 137 public Map processContext() throws WfException; 138 139 146 public void setProcessContext(Map newValue) throws WfException, InvalidData, UpdateNotAllowed; 147 148 155 public void setProcessContext(String newValue) throws WfException, InvalidData, UpdateNotAllowed; 156 157 162 public String contextKey() throws WfException; 163 164 169 public long priority() throws WfException; 170 171 176 public void setPriority(long newValue) throws WfException; 177 178 185 public void resume() throws WfException, CannotResume, NotRunning, NotSuspended; 186 187 194 public void suspend() throws WfException, CannotSuspend, NotRunning, AlreadySuspended; 195 196 202 public void terminate() throws WfException, CannotStop, NotRunning; 203 204 210 public void abort() throws WfException, CannotStop, NotRunning; 211 212 218 public int howManyHistory() throws WfException, HistoryNotAvailable; 219 220 228 public Iterator getIteratorHistory(String query, java.util.Map namesInQuery) throws WfException, HistoryNotAvailable; 229 230 237 public List getSequenceHistory(int maxNumber) throws WfException, HistoryNotAvailable; 238 239 245 public boolean isMemberOfHistory(WfExecutionObject member) throws WfException; 246 247 252 public Timestamp lastStateTime() throws WfException; 253 254 259 public GenericValue getDefinitionObject() throws WfException; 260 261 266 public GenericValue getRuntimeObject() throws WfException; 267 268 273 public GenericDelegator getDelegator() throws WfException; 274 275 } 277 | Popular Tags |