| |
|
| de.danet.an.workflow.api.Activity
Inner Class :public static class ClosedCompletedState extends ClosedState implements Serializable | |
Inner Class :public static class StartFinishMode implements Serializable | |
Inner Class :public static class JoinAndSplitMode implements Serializable | |
Inner Class :public interface Implementation extends Serializable | |
Inner Class :public interface ToolImplementation extends Implementation | |
Inner Class :public interface SubFlowImplementation extends Implementation | |
Inner Class :public class DeadlineInfo implements Serializable | |
abandon | void abandon(String exceptionName) throws RemoteException, TransitionNotAllowedException(Code) | | Force the completion of this activity, leaving it in state
"closed.completed.abandoned". Does nothing if the activity is
in state "closed" already or has not been started
("open.not_running.not_started").
An abandoned activity is considered to be completed under
exceptional circumstances. Therefore only transitions with
conditions of type EXCEPTION or
DEFAULTEXCEPTION are considered when evaluating
the set of subsequent activities. The argument is the name of
the exception which may be used to distinguish different
exceptions in transition evaluation (see XPDL).
This method should be used with care. In general, exceptions
have a different level of abstraction in a workflow process
description than in Java programming. The author of a workflow
process should not have to know about e.g. a
"SAXException". But he may know what to do in case of a
"ResultInvalid" exception (though this kind of problem should
only arise during development anyway).
This method may only be called during tool execution. Note that
calling this method does not terminate tool execution, i.e. the
method will return. A tool agent should, however, not try to do
anything with the activity any more after calling this method.
Parameters: exceptionName - the name of the exception throws: RemoteException - if a system-level error occurs throws: TransitionNotAllowedException - if the activity is notexecuting a tool |
activityInfo | Activity.Info activityInfo() throws RemoteException(Code) | | This method returns all available information about the
activity in a single operation.
the resulting Activity.Info value throws: RemoteException - if a system-level error occurs |
blockActivity | String blockActivity() throws RemoteException(Code) | | Returns the key of the "parent" block activity. All activities
implicitly created by a block activity share the same block
activity key.
Note that there need not be an activity with the returned key,
as an activity set is actually a template describing how to
implement block activities. The information obtained can mainly
be used to group all activities that have been instantiated as
part of an activity set.
an identification of the block activity that causedthis activity to be instantiated or null if thisactivity was not instantiated as part of an activity set throws: RemoteException - if a system-level error occurs |
choose | boolean choose() throws RemoteException, TransitionNotAllowedException(Code) | | Makes this activity the chosen one in a set of activities
started by an AND split with the "deferred choice" option
set. All other activities in the set are reset to their initial
state.
If the activity does not participate in a deferred choice,
this method does nothing and returns true .
true if the activity could be made theeffectively chosen one throws: RemoteException - if a system-level error occurs throws: TransitionNotAllowedException - if the activity isneither running nor suspended |
deadlines | DeadlineInfo[] deadlines() throws RemoteException(Code) | | Returns the deadlines defined for this activity.
the deadlines throws: RemoteException - if a system-level error occurs |
executor | Implementation executor() throws RemoteException(Code) | | Returns the current executor.
current executor or null if no executorrunning throws: RemoteException - if a system-level error occurs |
handledExceptions | String[] handledExceptions() throws RemoteException(Code) | | Returns the names of the exceptions handled by this activity.
handled exceptions throws: RemoteException - if a system-level error occurs |
implementation | Implementation[] implementation() throws RemoteException(Code) | | Returns the implementation of the activity as
de.danet.an.workflow.api.Activity.ImplementationImplementation s.
an array of Implementation }s ornull if no implementation is defined throws: RemoteException - if a system-level error occurs |
nextActivities | List nextActivities() throws RemoteException(Code) | | Returns the list of activities that may follow this activity,
i.e. to which transitions exist.
the list of Activity Activity objects. throws: RemoteException - if a system-level error occurs |
removeAssignment | void removeAssignment(WfResource resource) throws RemoteException, InvalidResourceException, NotAssignedException(Code) | | Removes an assignment for enacting the activity. This method calls
the corresponding method of the resource assignment service and
creates the appropriate audit event.
This method is intended to be used by resource management
systems for implementing
WfResource.releaseWfResource.release .
Clients should not use this
method but rather call
WfResource.releaseWfResource.release .
Parameters: resource - the resource whose assignment is to be canceled throws: RemoteException - if a system-level error occurs throws: InvalidResourceException - if the resource is invalid.As the environment is a concurrent multi user environment, WfResource objects may become invalid. throws: NotAssignedException - if there is no such assignment |
|
|
|