de.danet.an.workflow.spis.rms
Interface ResourceAssignmentContext

All Superinterfaces:
java.io.Serializable

public interface ResourceAssignmentContext
extends java.io.Serializable

This interface defines the callbacks that are needed by DefaultResource to obtain information from the server.

Author:
Michael Lipp

Method Summary
 boolean isMemberOfWorkItems(WfResource resource, WfAssignment assignment)
          Find out if a given assignment belongs to the work items assigned to a particular resource.
 java.util.Collection workItems(WfResource resource)
          Return the assignments of a given resource.
 

Method Detail

workItems

public java.util.Collection workItems(WfResource resource)
                               throws java.rmi.RemoteException,
                                      NoSuchResourceException
Return the assignments of a given resource.

Parameters:
resource - the resource.
Returns:
the collection of assigned work items (instances of WfAssignment).
Throws:
java.rmi.RemoteException - if a system-level error occurs.
NoSuchResourceException - if the resource is invalid. As the environment is a concurrent multi user environment, WfResource objects may become invalid.

isMemberOfWorkItems

public boolean isMemberOfWorkItems(WfResource resource,
                                   WfAssignment assignment)
                            throws java.rmi.RemoteException,
                                   NoSuchResourceException
Find out if a given assignment belongs to the work items assigned to a particular resource.

Parameters:
resource - the resource.
assignment - the assignment in question.
Returns:
true if the assignment belongs to the work items of the resource.
Throws:
java.rmi.RemoteException - if a system-level error occurs.
NoSuchResourceException - if the resource is invalid. As the environment is a concurrent multi user environment, WfResource objects may become invalid.