de.danet.an.workflow.omgcore
Interface WfAssignment

All Superinterfaces:
WfObject

public interface WfAssignment
extends WfObject

A WfAssignment links WfActivity objects to WfResource objects. These links represent real assignements for enacting the activity.


Method Summary
 WfActivity activity()
          A WfAssignment is associated with one WfActivity; the association is established when the assignment is created as part of the resource selection process for the activity.
 WfResource assignee()
          A WfAssignment is associated with one WfResource; the association is established when the assignment is created as part of the resource selection process for the activity.
 void setAssignee(WfResource newValue)
          A WfAssignment is associated with one WfResource; the association is established when the assignment is created as part of the resource selection process for the activity; this method can be used to reassign the assignment to another resource at a later point in time.
 

Method Detail

activity

public WfActivity activity()
                    throws java.rmi.RemoteException
A WfAssignment is associated with one WfActivity; the association is established when the assignment is created as part of the resource selection process for the activity. This method returns the associated activity.

Returns:
the associated activity.
Throws:
java.rmi.RemoteException - if a system-level error occurs.

assignee

public WfResource assignee()
                    throws java.rmi.RemoteException
A WfAssignment is associated with one WfResource; the association is established when the assignment is created as part of the resource selection process for the activity. This method returns the associated resource.

Returns:
the associated resource.
Throws:
java.rmi.RemoteException - if a system-level error occurs.

setAssignee

public void setAssignee(WfResource newValue)
                 throws java.rmi.RemoteException,
                        InvalidResourceException
A WfAssignment is associated with one WfResource; the association is established when the assignment is created as part of the resource selection process for the activity; this method can be used to reassign the assignment to another resource at a later point in time.

Parameters:
newValue - the new resource.
Throws:
InvalidResourceException - if an attempt is made to assign an invalid resource to the assignment.
java.rmi.RemoteException - if a system-level error occurs.