public interface WorkflowEventLookupSession extends OsidSession
This session provides methods for retrieving WorkflowEvents.
This session defines views that offer differing behaviors when retrieving multiple objects.
| Modifier and Type | Method and Description |
|---|---|
boolean |
canLookupWorkflowEvents()
Tests if this user can look up workflow events.
|
Office |
getOffice()
Gets the
Office associated with this session. |
Id |
getOfficeId()
Gets the
Office Id associated with this
session. |
WorkflowEvent |
getWorkflowEvent(Id workflowEventId)
Gets the
WorkflowEvent specified by its Id. |
WorkflowEventList |
getWorkflowEvents()
Gets the entire workflow log.
|
WorkflowEventList |
getWorkflowEventsByDate(DateTime start,
DateTime end)
Gets the entire workflow log within the given date range inclusive.
|
WorkflowEventList |
getWorkflowEventsByDateForProcess(Id processId,
DateTime start,
DateTime end)
Gets the entire workflow log for this process within the given date
range inclusive.
|
WorkflowEventList |
getWorkflowEventsByDateForStep(Id stepId,
DateTime start,
DateTime end)
Gets the workflow log for a step within the given date range
inclusive.
|
WorkflowEventList |
getWorkflowEventsByDateForStepAndWork(Id stepId,
Id workId,
DateTime start,
DateTime end)
Gets the workflow log for a work in this process within the given date
range inclusive.
|
WorkflowEventList |
getWorkflowEventsByDateForWork(Id workId,
DateTime start,
DateTime end)
Gets the workflow log for a work within the given date range
inclusive.
|
WorkflowEventList |
getWorkflowEventsByDateForWorkAndProcess(Id processId,
Id workId,
DateTime start,
DateTime end)
Gets the workflow log for a work in a process within the given date
range inclusive.
|
WorkflowEventList |
getWorkflowEventsByDateForWorker(Id resourceId,
DateTime start,
DateTime end)
Gets the workflow log by the resource in this process within the given
date range inclusive.
|
WorkflowEventList |
getWorkflowEventsByDateForWorkerAndProcess(Id resourceId,
Id processId,
DateTime start,
DateTime end)
Gets the workflow log by the resource in this process within the given
date range inclusive.
|
WorkflowEventList |
getWorkflowEventsByGenusType(Type workflowEventGenusType)
Gets a
WorkflowEventList corresponding to the given
workflow event genus Type which does not include
workflow events of genus types derived from the specified Type. |
WorkflowEventList |
getWorkflowEventsByIds(IdList workflowEventIds)
Gets a
WorkflowEventList corresponding to the given
IdList. |
WorkflowEventList |
getWorkflowEventsByParentGenusType(Type workflowEventGenusType)
Gets a
WorkflowEventList corresponding to the given
workflow event genus Type and include any additional
workflow events with genus types derived from the specified
Type. |
WorkflowEventList |
getWorkflowEventsByRecordType(Type workflowEventRecordType)
Gets a
WorkflowEventList containing the given workflow
event record Type. |
WorkflowEventList |
getWorkflowEventsForProcess(Id processId)
Gets the entire workflow log for a process.
|
WorkflowEventList |
getWorkflowEventsForStep(Id stepId)
Gets the workflow log for a step.
|
WorkflowEventList |
getWorkflowEventsForStepAndWork(Id stepId,
Id workId)
Gets the workflow log for a work in this process.
|
WorkflowEventList |
getWorkflowEventsForWork(Id workId)
Gets the workflow log for a work.
|
WorkflowEventList |
getWorkflowEventsForWorkAndProcess(Id processId,
Id workId)
Gets the workflow log for a work in a process.
|
WorkflowEventList |
getWorkflowEventsForWorker(Id resourceId)
Gets the workflow log by an agent in this process.
|
WorkflowEventList |
getWorkflowEventsForWorkerAndProcess(Id resourceId,
Id processId)
Gets the workflow log by an agent in this process.
|
void |
useComparativeWorkflowEventView()
The returns from the lookup methods may omit or translate elements
based on this session, such as authorization, and not result in an
error.
|
void |
useFederatedOfficeView()
Federates the view for methods in this session.
|
void |
useIsolatedOfficeView()
Isolates the view for methods in this session.
|
void |
usePlenaryWorkflowEventView()
A complete view of the
WorkflowEvent returns is
desired. |
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionscloseId getOfficeId()
Office Id associated with this
session. Office Id associated with this sessionmandatory - This method must be implemented. Office getOffice() throws OperationFailedException, PermissionDeniedException
Office associated with this session.OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. boolean canLookupWorkflowEvents()
PERMISSION_DENIED. This is intended as a hint to an
application that may opt not to offer lookup operations to an
unauthorized user. false if workflow event lookups is not
authorized, true otherwisemandatory - This method must be implemented. void useComparativeWorkflowEventView()
mandatory - This method is must be implemented. void usePlenaryWorkflowEventView()
WorkflowEvent returns is
desired. Methods will return what is requested or result in an error.
This view is used when greater precision is desired at the expense of
interoperability.mandatory - This method is must be implemented. void useFederatedOfficeView()
mandatory - This method is must be implemented. void useIsolatedOfficeView()
mandatory - This method is must be implemented. WorkflowEvent getWorkflowEvent(Id workflowEventId) throws NotFoundException, OperationFailedException, PermissionDeniedException
WorkflowEvent specified by its Id.
In plenary mode, the exact Id is found or a
NOT_FOUND results. Otherwise, the returned
WorkflowEvent may have a different Id than
requested, such as the case where a duplicate Id was
assigned to a WorkflowEvent and retained for
compatibility.workflowEventId - Id of the WorkflowEvent
NotFoundException - workflowEventId not
foundNullArgumentException - workflowEventId
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method is must be implemented. WorkflowEventList getWorkflowEventsByIds(IdList workflowEventIds) throws NotFoundException, OperationFailedException, PermissionDeniedException
WorkflowEventList corresponding to the given
IdList. In plenary mode, the returned list contains all
of the workflow events specified in the Id list, in the
order of the list, including duplicates, or an error results if an
Id in the supplied list is not found or inaccessible.
Otherwise, inaccessible WorkflowEvents may be omitted
from the list and may present the elements in any order including
returning a unique set.workflowEventIds - the list of Ids to retrieve WorkflowEvent listNotFoundException - an Id was not foundNullArgumentException - workflowEventIds
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. WorkflowEventList getWorkflowEventsByGenusType(Type workflowEventGenusType) throws OperationFailedException, PermissionDeniedException
WorkflowEventList corresponding to the given
workflow event genus Type which does not include
workflow events of genus types derived from the specified Type.
In plenary mode, the returned list contains all known workflow
events or an error results. Otherwise, the returned list may contain
only those workflow events that are accessible through this session.workflowEventGenusType - a workflow event genus type WorkflowEvent listNullArgumentException - workflowEventGenusType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. WorkflowEventList getWorkflowEventsByParentGenusType(Type workflowEventGenusType) throws OperationFailedException, PermissionDeniedException
WorkflowEventList corresponding to the given
workflow event genus Type and include any additional
workflow events with genus types derived from the specified
Type. In plenary mode, the returned list contains all known
workflow events or an error results. Otherwise, the returned list may
contain only those workflow events that are accessible through this
session.workflowEventGenusType - a workflow event genus type WorkflowEvent listNullArgumentException - workflowEventGenusType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. WorkflowEventList getWorkflowEventsByRecordType(Type workflowEventRecordType) throws OperationFailedException, PermissionDeniedException
WorkflowEventList containing the given workflow
event record Type. In plenary mode, the returned list
contains all known workflow events or an error results. Otherwise, the
returned list may contain only those workflow events that are
accessible through this session.workflowEventRecordType - a workflow event record type WorkflowEvent listNullArgumentException - workflowEventRecordType
is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. WorkflowEventList getWorkflowEventsByDate(DateTime start, DateTime end) throws OperationFailedException, PermissionDeniedException
start - start rangeend - end rangeInvalidArgumentException - start is
greater than end NullArgumentException - start or
end is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. WorkflowEventList getWorkflowEventsForProcess(Id processId) throws OperationFailedException, PermissionDeniedException
processId - a process Id NullArgumentException - processId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. WorkflowEventList getWorkflowEventsByDateForProcess(Id processId, DateTime start, DateTime end) throws OperationFailedException, PermissionDeniedException
processId - a process Id start - start rangeend - end rangeInvalidArgumentException - start is
greater than end NullArgumentException - processId, start,
or end is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. WorkflowEventList getWorkflowEventsForStep(Id stepId) throws OperationFailedException, PermissionDeniedException
stepId - a step Id NullArgumentException - stepId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. WorkflowEventList getWorkflowEventsByDateForStep(Id stepId, DateTime start, DateTime end) throws OperationFailedException, PermissionDeniedException
stepId - a step Id start - start rangeend - end rangeInvalidArgumentException - start is
greater than end NullArgumentException - stepId, start or
end is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. WorkflowEventList getWorkflowEventsForWork(Id workId) throws OperationFailedException, PermissionDeniedException
workId - a work Id NullArgumentException - workId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. WorkflowEventList getWorkflowEventsByDateForWork(Id workId, DateTime start, DateTime end) throws OperationFailedException, PermissionDeniedException
workId - a work Id start - start rangeend - end rangeInvalidArgumentException - start is
greater than end NullArgumentException - workId, start or
end is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. WorkflowEventList getWorkflowEventsForWorkAndProcess(Id processId, Id workId) throws OperationFailedException, PermissionDeniedException
processId - a process Id workId - a work Id NullArgumentException - workId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. WorkflowEventList getWorkflowEventsByDateForWorkAndProcess(Id processId, Id workId, DateTime start, DateTime end) throws OperationFailedException, PermissionDeniedException
processId - a process Id workId - a work Id start - start rangeend - end rangeInvalidArgumentException - start is
greater than end NullArgumentException - workId, start or
end is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. WorkflowEventList getWorkflowEventsForStepAndWork(Id stepId, Id workId) throws OperationFailedException, PermissionDeniedException
stepId - a step Id workId - a work Id NullArgumentException - stepId or
workId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. WorkflowEventList getWorkflowEventsByDateForStepAndWork(Id stepId, Id workId, DateTime start, DateTime end) throws OperationFailedException, PermissionDeniedException
stepId - a step Id workId - a work Id start - start rangeend - end rangeInvalidArgumentException - start is
greater than end NullArgumentException - stepId, workId, start
or end is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. WorkflowEventList getWorkflowEventsForWorker(Id resourceId) throws OperationFailedException, PermissionDeniedException
resourceId - a resource Id NullArgumentException - resourceId is
null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. WorkflowEventList getWorkflowEventsByDateForWorker(Id resourceId, DateTime start, DateTime end) throws OperationFailedException, PermissionDeniedException
resourceId - a resource Id start - start rangeend - end rangeInvalidArgumentException - start is
greater than end NullArgumentException - resourceId, start
or end is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. WorkflowEventList getWorkflowEventsForWorkerAndProcess(Id resourceId, Id processId) throws OperationFailedException, PermissionDeniedException
resourceId - a resource Id processId - a process Id NullArgumentException - resourceId or
processId is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. WorkflowEventList getWorkflowEventsByDateForWorkerAndProcess(Id resourceId, Id processId, DateTime start, DateTime end) throws OperationFailedException, PermissionDeniedException
resourceId - a resource Id processId - a process Id start - start rangeend - end rangeInvalidArgumentException - start is
greater than end NullArgumentException - resourceId, processId,
start or end is null OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented. WorkflowEventList getWorkflowEvents() throws OperationFailedException, PermissionDeniedException
OperationFailedException - unable to complete requestPermissionDeniedException - authorization failuremandatory - This method must be implemented.