|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface Activity
adds some functions to the
OMG activity
.
Nested Class Summary | |
static class |
Activity.ClosedCompletedState
This class defines the sub-states of ClosedState.COMPLETED of a . |
static class |
Activity.DeadlineInfo
Class DeadlineInfo describes all properties of a
deadline. |
static interface |
Activity.Implementation
The super interface of possible activity implementation descriptions. |
static class |
Activity.Info
Class Info combines various informational
attributes about an activity in a single structure for
efficient retrieval. |
static class |
Activity.JoinAndSplitMode
This class defines the join and split modes for an activity. |
static class |
Activity.StartFinishMode
This class defines the values for start and finish mode for an . |
static interface |
Activity.SubFlowImplementation
This interface describes the implementation of an activity by a sub flow. |
static interface |
Activity.ToolImplementation
This interface describes the implementation of an activity by a tool. |
Nested classes inherited from class de.danet.an.workflow.omgcore.WfExecutionObject |
WfExecutionObject.ClosedState, WfExecutionObject.NotRunningState, WfExecutionObject.OpenState, WfExecutionObject.State |
Method Summary | |
void |
abandon(java.lang.String exceptionName)
Force the completion of this activity, leaving it in state "closed.completed.abandoned". |
Activity.Info |
activityInfo()
This method returns all available information about the activity in a single operation. |
java.lang.String |
blockActivity()
Returns the key of the "parent" block activity. |
void |
changeAssignment(WfResource oldResource,
WfResource newResource)
Change an assignment for enacting the activity. |
boolean |
choose()
Makes this activity the chosen one in a set of activities started by an AND split with the "deferred choice" option set. |
Activity.DeadlineInfo[] |
deadlines()
Returns the deadlines defined for this activity. |
Activity.Implementation |
executor()
Returns the current executor. |
WfResource |
getResource(WfAssignment asnmnt)
Get the resource associated with an Assignment. |
java.lang.String[] |
handledExceptions()
Returns the names of the exceptions handled by this activity. |
Activity.Implementation[] |
implementation()
Returns the implementation of the activity as s. |
Activity.JoinAndSplitMode |
joinMode()
Returns the join mode. |
java.util.List |
nextActivities()
Returns the list of activities that may follow this activity, i.e. to which transitions exist. |
java.lang.String |
performer()
Returns the performer as string. |
void |
removeAssignment(WfResource resource)
Removes an assignment for enacting the activity. |
Activity.JoinAndSplitMode |
splitMode()
Returns the split mode. |
ActivityUniqueKey |
uniqueKey()
Return a unique key for the activity. |
Methods inherited from interface de.danet.an.workflow.api.ExecutionObject |
changeState, debugEnabled, typedState |
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.WfActivity |
assignments, complete, container, isMemberOfAssignments, result, setResult |
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 ActivityUniqueKey uniqueKey() throws java.rmi.RemoteException
key()
method as unique within the scope of the
containing process only.)
java.rmi.RemoteException
- if a system-level error occurspublic Activity.Implementation[] implementation() throws java.rmi.RemoteException
Implementation
s.
Implementation
}s or
null
if no implementation is defined
java.rmi.RemoteException
- if a system-level error occurspublic java.lang.String performer() throws java.rmi.RemoteException
java.rmi.RemoteException
- if a system-level error occurspublic Activity.Implementation executor() throws java.rmi.RemoteException
null
if no executor
running
java.rmi.RemoteException
- if a system-level error occurspublic Activity.JoinAndSplitMode joinMode() throws java.rmi.RemoteException
java.rmi.RemoteException
- if a system-level error occurspublic Activity.JoinAndSplitMode splitMode() throws java.rmi.RemoteException
java.rmi.RemoteException
- if a system-level error occurspublic java.util.List nextActivities() throws java.rmi.RemoteException
Activity
objects.
java.rmi.RemoteException
- if a system-level error occurspublic java.lang.String[] handledExceptions() throws java.rmi.RemoteException
java.rmi.RemoteException
- if a system-level error occurspublic Activity.DeadlineInfo[] deadlines() throws java.rmi.RemoteException
java.rmi.RemoteException
- if a system-level error occurspublic Activity.Info activityInfo() throws java.rmi.RemoteException
Activity.Info
value
java.rmi.RemoteException
- if a system-level error occurspublic java.lang.String blockActivity() throws java.rmi.RemoteException
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.
null
if this
activity was not instantiated as part of an activity set
java.rmi.RemoteException
- if a system-level error occurspublic void abandon(java.lang.String exceptionName) throws java.rmi.RemoteException, TransitionNotAllowedException
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.
exceptionName
- the name of the exception
java.rmi.RemoteException
- if a system-level error occurs
TransitionNotAllowedException
- if the activity is not
executing a toolpublic WfResource getResource(WfAssignment asnmnt) throws java.rmi.RemoteException
WfAssignment.assignee
.
Clients should not use this method but rather call
.
WfAssignment.assignee
asnmnt
- the assignment
java.rmi.RemoteException
- if a system-level error occurs.public void changeAssignment(WfResource oldResource, WfResource newResource) throws java.rmi.RemoteException, InvalidResourceException, AlreadyAssignedException, NotAssignedException
This method is intended to be used by resource assignment
systems for implementing
. Resource assignment
systems are responsible for implementing
WfAssignment.setAssignee
WfAssignment
and could therefore perform the
reassignment directly; this would, however, leave the
generation of notifications unexecuted.
Clients should not use this method but rather call
.
WfAssignment.setAssignee
oldResource
- the resource that has its assignment removednewResource
- the resource to be assigned
java.rmi.RemoteException
- if a system-level error occurs
InvalidResourceException
- if the resource is invalid.
As the environment is a concurrent multi user environment,
WfResource
objects may become invalid.
AlreadyAssignedException
- if the assignment already
exists
NotAssignedException
- if there is no assignment to the
old resourcepublic void removeAssignment(WfResource resource) throws java.rmi.RemoteException, InvalidResourceException, NotAssignedException
This method is intended to be used by resource management
systems for implementing
. WfResource.release
Clients should not use this
method but rather call
.
WfResource.release
resource
- the resource whose assignment is to be canceled
java.rmi.RemoteException
- if a system-level error occurs
InvalidResourceException
- if the resource is invalid.
As the environment is a concurrent multi user environment,
WfResource
objects may become invalid.
NotAssignedException
- if there is no such assignmentpublic boolean choose() throws java.rmi.RemoteException, TransitionNotAllowedException
If the activity does not participate in a deferred choice,
this method does nothing and returns true
.
true
if the activity could be made the
effectively chosen one
java.rmi.RemoteException
- if a system-level error occurs
TransitionNotAllowedException
- if the activity is
neither running nor suspended
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |