|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
WfExecutionObject
is an abstract base interface that defines
common attributes, states, and operations for
and
WfProcess
.
WfActivity
Nested Class Summary | |
static class |
WfExecutionObject.ClosedState
This class defines the sub-states of State.CLOSED of a as returned by . |
static class |
WfExecutionObject.NotRunningState
This class defines the sub-states of OpenState.NOT_RUNNING of a as returned by . |
static class |
WfExecutionObject.OpenState
This class defines the sub-states of State.OPEN of a as returned by . |
static class |
WfExecutionObject.State
This class defines the top-hierachy possible states of a as returned
by . |
Method Summary | |
void |
abort()
Requests enactment of a suspended execution object to be aborted before its normal completion. |
void |
changeState(java.lang.String newState)
Updates the current state of the execution object. |
java.lang.String |
description()
Get the description of this WfExecutionObject . |
java.util.Collection |
history()
Return all WfAuditEvent items associated with this
execution object. |
WfExecutionObject.State |
howClosed()
Returns the workflow state for closed execution objects. |
java.lang.String |
key()
Identifier of the execution object. |
java.util.Date |
lastStateTime()
Return the time the state of the WfExecutionObject was changed. |
java.lang.String |
name()
Return human readable, descriptive identifier of the execution object. |
int |
priority()
Return the priority of this WfExecutionObject . |
ProcessData |
processContext()
Return the context of this WfExecutionObject . |
void |
resume()
Requests enactment of a suspended execution object to be resumed. |
void |
setDescription(java.lang.String newValue)
Set the description of this WfExecutionObject . |
void |
setName(java.lang.String newValue)
Set the name of this WfExecutionObject . |
void |
setPriority(int newValue)
Update the priority of this WfExecutionObject . |
void |
setProcessContext(ProcessData newValue)
Set the context of this WfExecutionObject . |
java.lang.String |
state()
Gets the current state of the object. |
void |
suspend()
Requests enactment of an execution object to be suspended. |
void |
terminate()
Requests enactment of an execution object to be terminated before its normal completion. |
java.util.Collection |
validStates()
Returns a list of all the valid states that can be reached from the current state. |
WfExecutionObject.State |
whileOpen()
Returns the workflow state for open execution objects. |
WfExecutionObject.State |
whyNotRunning()
Returns the workflow state for open, not running execution objects. |
WfExecutionObject.State |
workflowState()
Return the current state. |
Method Detail |
public WfExecutionObject.State workflowState() throws java.rmi.RemoteException
state
.
java.rmi.RemoteException
- if a system-level error occurs.public WfExecutionObject.State whileOpen() throws java.rmi.RemoteException
State
object.
java.rmi.RemoteException
- if a system-level error occurs.public WfExecutionObject.State whyNotRunning() throws java.rmi.RemoteException
State
object.
java.rmi.RemoteException
- if a system-level error occurs.public WfExecutionObject.State howClosed() throws java.rmi.RemoteException
State
object.
java.rmi.RemoteException
- If a communication error occurred.public java.util.Collection validStates() throws java.rmi.RemoteException
collection
of
all the valid states.
java.rmi.RemoteException
- If a communication error occurred.public java.lang.String state() throws java.rmi.RemoteException
java.rmi.RemoteException
- If a communication error occurred.public void changeState(java.lang.String newState) throws java.rmi.RemoteException, InvalidStateException, TransitionNotAllowedException
newState
- State to change to.
InvalidStateException
- If newState
is an invalid
state for the execution object.
TransitionNotAllowedException
- If the transition from the current
state to newState
is not allowed.
java.rmi.RemoteException
- If a communication error occurred.public java.lang.String name() throws java.rmi.RemoteException
java.rmi.RemoteException
- If a communication error occurred.public void setName(java.lang.String newValue) throws java.rmi.RemoteException
WfExecutionObject
.
newValue
- the description of this WfExecutionObject
.
java.rmi.RemoteException
- If a communication error occurred.public java.lang.String key() throws java.rmi.RemoteException
java.rmi.RemoteException
- If a communication error occurred.public java.lang.String description() throws java.rmi.RemoteException
WfExecutionObject
.
java.rmi.RemoteException
- If a communication error occurred.public void setDescription(java.lang.String newValue) throws java.rmi.RemoteException
WfExecutionObject
.
newValue
- the description of this WfExecutionObject
.
java.rmi.RemoteException
- If a communication error occurred.public ProcessData processContext() throws java.rmi.RemoteException
WfExecutionObject
.
java.rmi.RemoteException
- If a communication error occurred.public void setProcessContext(ProcessData newValue) throws java.rmi.RemoteException, InvalidDataException, UpdateNotAllowedException
WfExecutionObject
.
newValue
- process relevant data that define the context of the
execution object.
java.rmi.RemoteException
- if a system-level error occurs.
InvalidDataException
- when new process data does not match the
signature of this WfExecutionObject
.
UpdateNotAllowedException
- raised when the implementation of the
WfM Facility or the specific workflow process does not allow an update
of the context.public int priority() throws java.rmi.RemoteException
WfExecutionObject
.
java.rmi.RemoteException
- if a system-level error occurs.public void setPriority(int newValue) throws java.rmi.RemoteException, InvalidPriorityException, UpdateNotAllowedException
WfExecutionObject
.
newValue
- new priority to set
java.rmi.RemoteException
- if a system-level error occurs.
InvalidPriorityException
- when the specified priority is out of
range.
UpdateNotAllowedException
- when the priority cannot be updated.public java.util.Date lastStateTime() throws java.rmi.RemoteException
java.rmi.RemoteException
- if a system-level error occurs.public void resume() throws java.rmi.RemoteException, CannotResumeException, NotRunningException, NotSuspendedException
java.rmi.RemoteException
- if a system-level error occurs.
CannotResumeException
- when the execution object cannot be
resumed. For example, resuming a WfActivity might not be allowed when
the containing WfProcess is suspended.
NotRunningException
- when the object is not running.
NotSuspendedException
- when the object is not suspended.public void suspend() throws java.rmi.RemoteException, CannotSuspendException, NotRunningException, AlreadySuspendedException
java.rmi.RemoteException
- if a system-level error occurs.
CannotSuspendException
- when the execution object cannot be
suspended. For example, an implementation of the WfM Facility might not
support suspension of a WfActivity
.
NotRunningException
- when the object is not running.
AlreadySuspendedException
- when the object is already suspended.public void terminate() throws java.rmi.RemoteException, CannotStopException, NotRunningException
java.rmi.RemoteException
- if a system-level error occurs.
CannotStopException
- when the execution object cannot be aborted.
NotRunningException
- when the object is not running.public void abort() throws java.rmi.RemoteException, CannotStopException, NotRunningException
java.rmi.RemoteException
- if a system-level error occurs.
CannotStopException
- when the execution object cannot be aborted.
NotRunningException
- when the object is not running.public java.util.Collection history() throws java.rmi.RemoteException, HistoryNotAvailableException
WfAuditEvent
items associated with this
execution object.
WfAuditEvent
items.
java.rmi.RemoteException
- if a system-level error occurs.
HistoryNotAvailableException
- if any audit event item available.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |