|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectde.danet.an.workflow.spis.rms.ResourceSupport
This class provides the standard implementation of the
methods WfResource,
workItems and
isMemberOfWorkItems.
The class uses the release as described in
ResourceAssignmentServiceFactory. The class caches the
resource factory obtained from the first call to de.danet.an.workflow.spis.rms.
ResourceAssignmentServiceFactory.newInstance()
| Constructor Summary | |
protected |
ResourceSupport(ResourceAssignmentService assignSvc)
The constructor. |
| Method Summary | |
boolean |
isMemberOfWorkItems(WfAssignment assignment)
Checks if a given is
associated with this resource. |
void |
release(WfAssignment fromAssignment,
String releaseInfo)
Signals to the resource that it is no longer needed for a specific assignment. |
Collection |
workItems()
This method returns the s
associated with a resource. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface de.danet.an.workflow.omgcore.WfResource |
resourceKey, resourceName |
| Constructor Detail |
protected ResourceSupport(ResourceAssignmentService assignSvc)
assignSvc - the resource assignment service.| Method Detail |
public Collection workItems()
throws RemoteException,
IllegalStateException
WfAssignmentss
associated with a resource.
workItems in interface WfResourceWfAssignmentss.
RemoteException - if a system-level error occurs.
IllegalStateException - if the resource has become invalid.
This is actually a remapping of the NoSuchResourceException
thrown by ResourceAssignmentService.workItems(). It must be remapped
because this method's signature is specified by
WfResource.workItems().
public boolean isMemberOfWorkItems(WfAssignment assignment)
throws RemoteException,
IllegalStateException
WfAssignment is
associated with this resource.
isMemberOfWorkItems in interface WfResourceassignment - the assignment in question.
true if the association exists.
RemoteException - if a system-level error occurs.
This is actually a remapping of the NoSuchResourceException
thrown by ResourceAssignmentService.isMemberOfWorkItems(...).
It must be remapped
because this method's signature is specified by
WfResource.isMemberOfWorkItems(...).
IllegalStateException - if the resource has become invalid.
public void release(WfAssignment fromAssignment,
String releaseInfo)
throws RemoteException,
NotAssignedException
removeAssignment on the activity.
release in interface WfResourcefromAssignment - 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.
RemoteException - if a system-level error occurs.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||