|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
WfResource
is an abstraction that represents a person or
thing that will potentially accept an assignment to an activity.
Method Summary | |
boolean |
isMemberOfWorkItems(WfAssignment member)
Checks if a given is
associated with this resource. |
void |
release(WfAssignment fromAssignment,
java.lang.String releaseInfo)
Signals to the resource that it is no longer needed for a specific assignment. |
java.lang.String |
resourceKey()
Returns the resource key. |
java.lang.String |
resourceName()
Returns a human readable, descriptive name of the resource. |
java.util.Collection |
workItems()
This method returns the s
associated with a resource. |
Method Detail |
public java.util.Collection workItems() throws java.rmi.RemoteException
WfAssignments
s
associated with a resource.
WfAssignments
s.
java.rmi.RemoteException
- if a system-level error occurs.public boolean isMemberOfWorkItems(WfAssignment member) throws java.rmi.RemoteException
WfAssignment
is
associated with this resource.
member
- the given WfAssignment
.
true
if the association exists.
java.rmi.RemoteException
- if a system-level error occurs.public java.lang.String resourceKey() throws java.rmi.RemoteException
The key is set when the object is initialized; modification of the key can be done in the context of a resource management facility.
java.rmi.RemoteException
- if a system-level error occurs.public java.lang.String resourceName() throws java.rmi.RemoteException
java.rmi.RemoteException
- if a system-level error occurs.public void release(WfAssignment fromAssignment, java.lang.String releaseInfo) throws java.rmi.RemoteException, NotAssignedException
(The description from the OMG specification is a bit unclear
about the nature of this method. Is it used to signal
the release, or does it cause the release, i.e. does
it update the storage of assignments. Due to the fact that this
method throws NotAssignedException
, which is
possible only if this method interfaces with the assignment
storage, we have opted for the latter.)
fromAssignment
- the specific assignment.releaseInfo
- specifies additional information on the
reason for realizing the resource as input.
NotAssignedException
- if the resource is not associated
with the given assignment.
java.rmi.RemoteException
- if a system-level error occurs.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |