|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
WfActivity
is a step in a process that is associated,
as part of an aggregation, with a single
.
It represents a request for work in the context of the containing
WfProcess
WfProcess
.
Nested Class Summary |
Nested classes inherited from class de.danet.an.workflow.omgcore.WfExecutionObject |
WfExecutionObject.ClosedState, WfExecutionObject.NotRunningState, WfExecutionObject.OpenState, WfExecutionObject.State |
Method Summary | |
java.util.Collection |
assignments()
Returns all the WfAssignment associated with a
WfActivity . |
void |
complete()
This method is used by an application to signal the completion of an activity. |
WfProcess |
container()
Returns the WfProcess that this activity is a part of. |
boolean |
isMemberOfAssignments(WfAssignment member)
Check if the given assignment is among the assignments of this activity. |
ProcessData |
result()
Returns the result produced by the realization of the work request represented by an activity. |
void |
setResult(ProcessData result)
Passes result data back to the workflow process. |
Methods inherited from interface de.danet.an.workflow.omgcore.WfExecutionObject |
abort, changeState, description, history, howClosed, key, lastStateTime, name, priority, processContext, resume, setDescription, setName, setPriority, setProcessContext, state, suspend, terminate, validStates, whileOpen, whyNotRunning, workflowState |
Methods inherited from interface de.danet.an.workflow.omgcore.WfRequester |
isMemberOfPerformers, performers |
Methods inherited from interface de.danet.an.workflow.omgcore.WfAuditHandler |
receiveEvent |
Method Detail |
public java.util.Collection assignments() throws java.rmi.RemoteException
WfAssignment
associated with a
WfActivity
.
java.rmi.RemoteException
- if a system-level error occurs.public boolean isMemberOfAssignments(WfAssignment member) throws java.rmi.RemoteException
member
- the assignment in question.
java.rmi.RemoteException
- if a system-level error occurs.public WfProcess container() throws java.rmi.RemoteException
WfProcess
that this activity is a part of.
java.rmi.RemoteException
- if a system-level error occurs.public ProcessData result() throws java.rmi.RemoteException, ResultNotAvailableException
java.rmi.RemoteException
- if a system-level error occurs.
ResultNotAvailableException
- if accessing to the result of an
activity is not supported or the result data are not available yet.public void setResult(ProcessData result) throws java.rmi.RemoteException, InvalidDataException
result
- the result data.
java.rmi.RemoteException
- if a system-level error occurs.
InvalidDataException
- if the data do not match the signature of
the activity or when an invalid attempt is made to update the results
of an activity; lack of access rights might be one of those reasons.public void complete() throws java.rmi.RemoteException, CannotCompleteException
closed.completed
.
XPDL allows an activity to be implemented by several tools that
are executed in sequence. Only if complete
is
called after the last tool has been started will the workflow
engine change the activity's state to
closed.completed
. Else the activity will remain in
the open.running
state and the next tool will be started.
If complete
is called while the activity's state has been
set to open.not_running.suspended
the next tool will not be started until the activity is resumed.
The extended API
provides methods for finding out which tool is currently being
executed.
java.rmi.RemoteException
- if a system-level error occurs.
CannotCompleteException
- if the activity cannot be completed yet.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |