de.danet.an.workflow.omgcore
Interface WfRequester

All Superinterfaces:
java.util.EventListener, WfAuditHandler, WfObject
All Known Subinterfaces:
Activity, WfActivity
All Known Implementing Classes:
DefaultRequester

public interface WfRequester
extends WfObject, WfAuditHandler

WfRequester is the interface that has a direct concern with the execution and results of a workflow process. It represents the request for some work to be done. Its performer, a WfProcess is expected to handle its request and communicate significant status changes; in particular to inform the requester when it has completed performing the request work.

The support of WfRequesters in a workflow engine implementation is complicated because the receiveEvent method reverses the client server relationship and because an object from the application space must be stored by the server.

Implementations of WfRequester are therefore subject to the following restrictions:

Most applications will simply use the requester provided as DefaultRequester.


Method Summary
 boolean isMemberOfPerformers(WfProcess member)
          Check if the given process is among the performers of this requester.
 java.util.Collection performers()
          Return all performers associated with this requester.
 
Methods inherited from interface de.danet.an.workflow.omgcore.WfAuditHandler
receiveEvent
 

Method Detail

performers

public java.util.Collection performers()
                                throws java.rmi.RemoteException
Return all performers associated with this requester.

Returns:
A collection of associated performers.
Throws:
java.rmi.RemoteException - if a system-level error occurs.

isMemberOfPerformers

public boolean isMemberOfPerformers(WfProcess member)
                             throws java.rmi.RemoteException
Check if the given process is among the performers of this requester.

Parameters:
member - the process in question.
Returns:
true if the process is among the performers of this requester.
Throws:
java.rmi.RemoteException - if a system-level error occurs.