Method Summary |
|
public void | abort() |
public Collection | activitiesInState(String state) Return all WfActivity objects that are in a certain state.
Parameters: state - the given state. |
public Collection | activitiesOfBlockActivity(String blockActivity) Return all WfActivity objects that belong to the
given block activity. |
abstract public ActivityLocal | activityByKeyLocal(String key) Returns the
ActivityLocal Activity with the
given key. |
ActivityInitializer | activityInitializer(Map actIds, Map trefs, Map actSets, String blkActKey) Return a new initializer with the given parameters. |
abstract protected WfAuditEvent | activityRequesterInfo(WfRequester req) Retrieve the base event information about a requesting activity.
Parameters: req - the requester. |
protected WfAuditEvent | auditEventBase(String eventType) Returns an audit event object with process relevant information
initialized. |
protected ActivityLocal | blockActivityRepresentation(String key) Return a runtime representation of a block activity. |
public void | changeState(State newState) Adds the possibility to change the state to
OpenState.RUNNING (i.e. |
public boolean | choose(ExtActivityLocal activity) |
protected int | cleanupMode() Returns the cleanup mode for the process as defined in its process
definition. |
public void | closeActivity(ExtActivityLocal activity, State closedState) |
protected void | closeChannels() Called when the process is closed. |
abstract protected WfActivityLocal | createActivity(String blockActId, Priority priority, String name, String description, StartFinishMode startMode, StartFinishMode finishMode, JoinAndSplitMode joinMode, JoinAndSplitMode splitMode, Implementation[] implementation, String performer, List deadlines, boolean deferredChoice, int auditEventSelection, boolean storeAuditEvents) Factory method that create new persistent objects of type
WfActivity . |
abstract protected Long | createActivityKey() Provide a new unique activity key. |
public Date | createTime() Returns the creation time of the process. |
protected void | dispose() Releases all allocated resources. |
abstract protected TransitionLocal | doCreateTransition(String id, String group, int order, ActivityLocal fromAct, ActivityLocal toAct, int condType, String condition) Persist a new transition with given id, from-activity,
to-activity. |
public boolean | equals(Object obj) Indicates if some other object is equal to this one. |
public Serializable[] | evalExpressions(Object[][] expressionData) Evaluate the given expressions using the process specific data
(the scope as returned by
AbstractProcess.jsScopejsScope for JavaScript). |
public Serializable | evalScript(String script) Evaluate the given script using the process specific scope as
returned by
AbstractProcess.jsScope jsScope . |
abstract protected Map | getPaBlockDeadlines() The getter method for the persistent attribute
blockDeadlines . |
abstract protected Date | getPaCreateTime() The getter method for the persistent attribute createTime . |
abstract protected String | getPaId() The getter method for the persistent attribute id . |
abstract protected Priority | getPaPriority() The getter method for the persistent attribute priority . |
abstract protected ProcessData | getPaProcessData() The getter method for the persistent attribute processData . |
abstract protected ProcessDefinition | getPaProcessDef() The getter method for the persistent attribute processDef . |
abstract protected String | getPaProcessMgrName() The getter method for the persistent attribute
processMgrName . |
abstract protected String | getPaProcessMgrVersion() The getter method for the persistent attribute
processMgrVersion . |
abstract protected WfRequester | getPaRequester() The getter method for the persistent attribute requester . |
protected Map | getStateTransitionMap() Returns the
java.util.Map Map that maps
the process states to a
java.util.Map List of reachable process states. |
protected void | handleAbortedEvent(WfStateAuditEvent event) Handles a aborting audit event. |
public void | handleAuditEvent(WfAuditEvent event) Handles the given audit event. |
protected void | handleCompletedEvent(WfStateAuditEvent event) Handles a completed audit event. |
public void | handleException(ExtActivityLocal activity, String exceptionName) |
protected void | handleResumedEvent(WfStateAuditEvent event) Handles a resumed audit event. |
protected void | handleStartedEvent(WfStateAuditEvent event) Handles a started audit event. |
protected void | handleTerminatedEvent(WfStateAuditEvent event) Handles a terminated audit event. |
public void | handleTimeout(Serializable info) Handle the timeout of a timer. |
protected void | init(ProcessDefinition procDef) Initializes the class, i.e. |
public static boolean | isHandled(WfAuditEvent event) Check if this class handles a specific event. |
public Scriptable | jsScope() Return a scope for evaluating JavaScript. |
abstract protected ExtActivityLocal | lookupActivityLocal(String key) Return an arbitrary activity with the given key. |
public ProcessData | processContext() Return the context of this WfExecutionObject . |
public ProcessDefinition | processDefinition() Returns the associated process defintion. |
protected void | refresh() Called after change of persistent attributes. |
abstract protected void | removeThis() Remove this process. |
public WfRequester | requester() Returns the requester for this process. |
public Process | requestingProcess() Return the process this process is a subflow of. |
public ProcessData | result() The result method returns the process context. |
public void | setDebugEnabled(boolean debug) Enable or disable debugging of the activity. |
abstract protected void | setPaId(String newId) The setter method for the persistent attribute Id . |
abstract protected void | setPaPriority(Priority newPriority) The setter method for the persistent attribute priority . |
abstract protected void | setPaProcessDef(ProcessDefinition newProcessDef) The setter method for the persistent attribute processDef . |
abstract protected void | setPaProcessMgrName(String newProcessMgrName) The setter method for the persistent attribute
processMgrName . |
abstract protected void | setPaProcessMgrVersion(String newProcessMgrVersion) The setter method for the persistent attribute
processMgrVersion . |
public void | setProcessContext(ProcessData newValues) Updates process context of the execution object. |
public void | setRequester(WfRequester requester) For the first iteration throws an
CannotChangeRequesterException. |
public void | start() Starts a process. |
public Collection | steps() Returns a collection of activities of the process. |
abstract public Collection | stepsLocal() Returns all WfActivityLocals associated with this WfProcess .
the collection of all the WfActivities. |
public void | terminate() |
abstract public Process | toProcess() Return the remote version of this object. |
abstract public ExtProcessLocal | toProcessLocal() Return the version of this object to be passed to as local reference. |
public String | toString() Return string representation for debugging purposes. |
TransitionInitializer | transitionInitializer(Map actIds, Map trefs, String blkActId) Return a new initializer with the given parameters.
Parameters: actIds - activity id map Parameters: trefs - transition reference map Parameters: blkActId - the Id of the block activity beingcreated, i.e. |
protected TransitionManager | transitionManager() Returns the transition manager. |
abstract public List | transitionsLocal() Returns all transitions associated with this WfProcess .
the collection of all the WfActivities. |
public WfRequester | unresolvedRequester() Returns the requester for this process without resolving the
internally used SubProcRequester to the associated WfActivity.
requester for this process. |