As the workflow core does not have a defined access to a resource management facility, this mapping functionality must be brought to the workflow core by the resource assignment service. If the resource assignment service is based on a resource management service as defined in package {@link de.danet.an.workflow.spis.rms de.danet.an.workflow.spis.rms
}, it can simply delegate this call to {@link de.danet.an.workflow.spis.rms.ResourceManagementService#asResource ResourceManagementService.asResource
}. The workflow engine does not need this method for its operation; however, it provides a method for accessing this information as part of the client interface to ease the implementation of clients that e.g. want to generate a list of assignments for the current user. The implementation of this method by a resource assignment service is therefore optional. If not implemented, a call to this method must result in a {@link java.lang.UnsupportedOperationException UnsupportedOperationException
}.
@param principal the principal.
@return a WfResource
object corresponding to thegiven principal.
@throws InvalidKeyException if the resource with the given keycan't be found.
@throws RemoteException if a system-level error occurs.
@since 1.2
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|