This method is used by an application to signal the completion
of an activity. Note that this does not necessarily imply that
the activity's state changes to
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
de.danet.an.workflow.api.Activity extended API provides methods for finding out which tool is currently being
executed.
throws: RemoteException - if a system-level error occurs. throws: CannotCompleteException - if the activity cannot be completed yet. |