hashCode() Returns a hash code value for this object.
Note that stubs do not in general implement
hashCode correctly, so even if two execution
objects are equal (this.equals(obj) is
true) this.hashCode() need not be
equal to obj.hashCode().
Returns a WfAuditEvent containing information about the
execution object.
Parameters: eventType - event type the event containing the required information.
Updates the current state of the execution object. As a result
the state of execution objects associated with this execution
object might be updated, too. This implementation effectively
calls
ExecutionObjectLocal.changeStatechangeState(State) after converting the argument
to State. Derived classes therefore only need to
override changeState(State).
Parameters: newState - State to change to. throws: InvalidStateException - If newState is an invalidstate for the execution object. throws: TransitionNotAllowedException - If the transition from the currentstate to newState is not allowed.
Updates the current state of the execution object. As a result
the state of execution objects associated with this execution object
may be updated, too. This method uses
the State class to represent states.
Parameters: newState - the new state. throws: InvalidStateException - If newState is an invalidstate for the execution object. throws: TransitionNotAllowedException - If the transition from the currentstate to newState is not allowed.
Process newly generated event. This fall-back implementation
logs the event with level DEBUG and calls handlers
for state change events. If the event source is an
AbstractProcess its handleAuditEvent
is called. If the event source is an
AbstractActivity both the activity's and the
process' handler are called.
This implementation is mainly intended for unit tests on the
domain level. It must be overridden by the derived classes.
Parameters: event - Event
getPaAuditEventSelection
abstractprotected int getPaAuditEventSelection()(Code)
The getter method for the persistent attribute
lastStateTime. This attribute holds the time when
the state was last changed. This may happen from an explicit
action like the complete() method or via a state
change propagation from another WfmExecutionObject.
the value of lastStateTime. See Also:AbstractExecutionObject.setPaLastStateTime
Returns the
java.util.MapMap that maps
the execution object states to a
java.util.MapList of reachable process states.
The map returns the state transitions allowed as parameters of
de.danet.an.workflow.localcoreapi.WfExecutionObjectLocal.changeStatechangeState only. I.e. the map does not reflect
all possible transitions, there may be more, but those are only
accessible to the workflow engine itself.
the resulting map.
Handles the given audit event. The fall back implementation
simply calls
AbstractExecutionObject.handleStateAuditEvent if
the event source is this object and the event is a
WfStateAuditEvent or a
ToolCompletedAuditEvent .
Parameters: event - the event.
Handles a state audit event, this includes
ImplCompleteAuditEvents. This implementation
simply calls the appropriate handler method
handleTransitionEvent.
Parameters: event - the event.
Note that stubs do not in general implement
hashCode correctly, so even if two execution
objects are equal (this.equals(obj) is
true) this.hashCode() need not be
equal to obj.hashCode().
the hash code value.
Called after change of persistent attributes. May be used to
synchronise state derived from persistent attributes with
the new values.
See Also:AbstractExecutionObject.init
Enable or disable debugging of the execution object.
Parameters: debug - if the execution object is to be debugged throws: InvalidStateException - if changing debug mode is notallowed
The setter method for the persistent attribute
auditEventSelection.
Parameters: newAuditEventSelection - the new value ofauditEventSelection. See Also:AbstractExecutionObject.getPaAuditEventSelection
The setter method for the persistent attribute description.
Parameters: newDescription - the new value of description. See Also:AbstractExecutionObject.getPaDescription
The setter method for the persistent attribute
lastStateTime.
Parameters: newLastStateTime - the new value of lastStateTime. See Also:AbstractExecutionObject.getPaLastStateTime
The setter method for the persistent attribute priority.
Parameters: newPriority - the new value of priority. See Also:AbstractExecutionObject.getPaPriority
The setter method for the persistent attribute
storeAuditEvents.
Parameters: newStoreAuditEvents - the new value of storeAuditEvents. See Also:AbstractExecutionObject.getPaStoreAuditEvents
The setter method for the persistent attribute
typedState.
Parameters: newTypedState - the new value of typedState. See Also:AbstractExecutionObject.getPaTypedState
For the first iteration throws an
UpdateNotAllowedException.
Parameters: newValue - new priority throws: InvalidPriorityException - when the specified priority is out of range. throws: UpdateNotAllowedException - when the priority cannot be updated.
Updates process context of the execution object.
Parameters: newValues - the name-value pairs to be set. throws: InvalidDataException - If a name or value type does not matchthe signature of this process. throws: UpdateNotAllowedException - If the update is not allowed.
Like
AbstractExecutionObject.updateStateupdateState this method
sets the state of this object and fires a state change
event. The state change event will, however, not be fed back to
the engine, i.e. it will not lead to follow up activities.
The method is intended to be used in cases where the engine triggers
a state change itself and also performs all actions that are usually
done in the event handling method.
Parameters: newState - new state. See Also:AbstractExecutionObject.typedState
Like
AbstractExecutionObject.updateStateupdateState this method
sets the state of this object and fires a state change
event. The state change event will, however, not be fed back to
the engine, i.e. it will not lead to follow up activities and
the last state time will not be updated.
The method is intended to be used for an interim state change,
i.e. the caller knows that the state will change again before
the transaction is completed.
Parameters: newState - new state. See Also:AbstractExecutionObject.typedState
Sets the state of this object. The method updates the last
state time and fires a state change event.
Parameters: newState - new state. See Also:AbstractExecutionObject.typedState
Returns a list of all the valid states as strings that can be reached
from the current state. If there is no valid state, the collection
will be empty.
list of all the valid states
Returns a list of all the valid states (as State objects)
that can be reached
from the current state. If there is no valid state, the collection
will be empty.
list of all the valid states