Interface WorkflowEventLookupSession
- All Superinterfaces:
AutoCloseable, Closeable, OsidSession, OsidSession
This session provides methods for retrieving WorkflowEvents .
This session defines views that offer differing behaviors when retrieving multiple objects.
- comparative view: elements may be silently omitted or re-ordered
- plenary view: provides a complete set or is an error condition
- isolated office view: All workflow event methods in this session
operate, retrieve and pertain to workflow events defined explicitly in
the current office Using an isolated view is useful for managing
WorkflowEventswith theWorkflowEventAdminSession. - federated workflow event view: All workflow event methods in this session operate, retrieve and pertain to all workflow events defined in this office and any other workflow events implicitly available in this office through office inheritence.
Generally, the comparative view should be used for most applications
as it permits operation even if there is data that cannot be accessed. The
methods useFederatedOfficeView() and
useIsolatedOfficeView() behave as a radio group and one should be
selected before invoking any lookup methods.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanTests if this user can performWorkflowEventlookups.Gets theOfficeassociated with this session.Gets theOfficeIdassociated with this session.getWorkflowEvent(Id workflowEventId) Gets theWorkflowEventspecified by itsId.Gets allWorkflowEvents.getWorkflowEventsByDate(DateTime start, DateTime end) Gets the entire workflow log within the given date range inclusive.getWorkflowEventsByDateForProcess(Id processId, DateTime start, DateTime end) Gets the entire workflow log for this process within the given date range inclusive.getWorkflowEventsByDateForStep(Id stepId, DateTime start, DateTime end) Gets the workflow log for a step within the given date range inclusive.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.getWorkflowEventsByDateForWork(Id workId, DateTime start, DateTime end) Gets the workflow log for a work within the given date range inclusive.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.getWorkflowEventsByDateForWorker(Id resourceId, DateTime start, DateTime end) Gets the workflow log by the resource in this process within the given date range inclusive.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.getWorkflowEventsByGenusType(Type workflowEventGenusType) Gets aWorkflowEventListcorresponding to the given workflow event genusTypewhich does not include workflow events of genus types derived from the specifiedType.getWorkflowEventsByIds(IdList workflowEventIds) Gets aWorkflowEventListcorresponding to the givenIdList.getWorkflowEventsByParentGenusType(Type workflowEventGenusType) Gets aWorkflowEventListcorresponding to the given workflow event genusTypeand include any additional workflow events with genus types derived from the specifiedType.getWorkflowEventsByRecordType(Type workflowEventRecordType) Gets aWorkflowEventListcontaining the given workflow event recordType.getWorkflowEventsForProcess(Id processId) Gets the entire workflow log for a process.getWorkflowEventsForStep(Id stepId) Gets the workflow log for a step.getWorkflowEventsForStepAndWork(Id stepId, Id workId) Gets the workflow log for a work in this process.getWorkflowEventsForWork(Id workId) Gets the workflow log for a work.getWorkflowEventsForWorkAndProcess(Id processId, Id workId) Gets the workflow log for a work in a process.getWorkflowEventsForWorker(Id resourceId) Gets the workflow log by an agent in this process.getWorkflowEventsForWorkerAndProcess(Id resourceId, Id processId) Gets the workflow log by an agent in this process.voidThe returns from the lookup methods may omit or translate elements based on this session, such as authorization, and not result in an error.voidFederates the view for methods in this session.voidIsolates the view for methods in this session.voidA complete view of theWorkflowEventreturns is desired.Methods inherited from interface OsidSession
closeMethods inherited from interface OsidSession
getAuthenticatedAgent, getAuthenticatedAgentId, getClockRate, getDate, getEffectiveAgent, getEffectiveAgentId, getFormatType, getLocale, isAuthenticated, startTransaction, supportsTransactionsModifier and TypeMethodDescriptionGets the agent authenticated to this session.Gets theIdof the agent authenticated to this session.Gets the rate of the service clock.getDate()Gets the service date which may be the current date or the effective date in which this session exists.Gets the effective agent in use by this session.Gets theIdof the effective agent in use by this session.Gets theDisplayTextformatTypepreference in effect for this session.Gets the locale indicating the localization preferences in effect for this session.booleanTests if an agent is authenticated to this session.Starts a new transaction for this sesson.booleanTests for the availability of transactions.
-
Method Details
-
getOfficeId
Id getOfficeId()Gets theOfficeIdassociated with this session.- Returns:
- the
Office Idassociated with this session - Compliance:
mandatory- This method must be implemented.
-
getOffice
Gets theOfficeassociated with this session.- Returns:
- the office
- Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
canLookupWorkflowEvents
boolean canLookupWorkflowEvents()Tests if this user can performWorkflowEventlookups. A return of true does not guarantee successful authorization. A return of false indicates that it is known all methods in this session will result in aPERMISSION_DENIED.This is intended as a hint to an application that may opt not to offer lookup operations to unauthorized users.- Returns:
falseif lookup methods are not authorized,trueotherwise- Compliance:
mandatory- This method must be implemented.
-
useComparativeWorkflowEventView
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. This view is used when greater interoperability is desired at the expense of precision.- Compliance:
mandatory- This method is must be implemented.
-
usePlenaryWorkflowEventView
void usePlenaryWorkflowEventView()A complete view of theWorkflowEventreturns 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.- Compliance:
mandatory- This method is must be implemented.
-
useFederatedOfficeView
void useFederatedOfficeView()Federates the view for methods in this session. A federated view will include workflow events in offices which are children of this office in the office hierarchy.- Compliance:
mandatory- This method is must be implemented.
-
useIsolatedOfficeView
void useIsolatedOfficeView()Isolates the view for methods in this session. An isolated view restricts lookups to this office only.- Compliance:
mandatory- This method is must be implemented.
-
getWorkflowEvent
WorkflowEvent getWorkflowEvent(Id workflowEventId) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets theWorkflowEventspecified by itsId. In plenary mode, the exactIdis found or aNOT_FOUNDresults. Otherwise, the returnedWorkflowEventmay have a differentIdthan requested, such as the case where a duplicateIdwas assigned to aWorkflowEventand retained for compatibility.- Parameters:
workflowEventId-Idof theWorkflowEvent- Returns:
- the workflow event
- Throws:
NotFoundException-workflowEventIdnot foundNullArgumentException-workflowEventIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method is must be implemented.
-
getWorkflowEventsByIds
WorkflowEventList getWorkflowEventsByIds(IdList workflowEventIds) throws NotFoundException, OperationFailedException, PermissionDeniedException Gets aWorkflowEventListcorresponding to the givenIdList. In plenary mode, the returned list contains all of the workflow events specified in theIdlist, in the order of the list, including duplicates, or an error results if anIdin the supplied list is not found or inaccessible. Otherwise, inaccessibleWorkflowEventsmay be omitted from the list and may present the elements in any order including returning a unique set.- Parameters:
workflowEventIds- the list ofIdsto retrieve- Returns:
- the returned
WorkflowEventlist - Throws:
NotFoundException- anId wasnot foundNullArgumentException-workflowEventIdsisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getWorkflowEventsByGenusType
WorkflowEventList getWorkflowEventsByGenusType(Type workflowEventGenusType) throws OperationFailedException, PermissionDeniedException Gets aWorkflowEventListcorresponding to the given workflow event genusTypewhich does not include workflow events of genus types derived from the specifiedType. 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.- Parameters:
workflowEventGenusType- a workflow event genus type- Returns:
- the returned
WorkflowEventlist - Throws:
NullArgumentException-workflowEventGenusTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getWorkflowEventsByParentGenusType
WorkflowEventList getWorkflowEventsByParentGenusType(Type workflowEventGenusType) throws OperationFailedException, PermissionDeniedException Gets aWorkflowEventListcorresponding to the given workflow event genusTypeand include any additional workflow events with genus types derived from the specifiedType. 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.- Parameters:
workflowEventGenusType- a workflow event genus type- Returns:
- the returned
WorkflowEventlist - Throws:
NullArgumentException-workflowEventGenusTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getWorkflowEventsByRecordType
WorkflowEventList getWorkflowEventsByRecordType(Type workflowEventRecordType) throws OperationFailedException, PermissionDeniedException Gets aWorkflowEventListcontaining the given workflow event recordType. 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.- Parameters:
workflowEventRecordType- a workflow event record type- Returns:
- the returned
WorkflowEventlist - Throws:
NullArgumentException-workflowEventRecordTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getWorkflowEventsByDate
WorkflowEventList getWorkflowEventsByDate(DateTime start, DateTime end) throws OperationFailedException, PermissionDeniedException Gets the entire workflow log within the given date range inclusive. 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.- Parameters:
start- start rangeend- end range- Returns:
- the workflow events
- Throws:
InvalidArgumentException-startis greater thanendNullArgumentException-startorendisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getWorkflowEventsForProcess
WorkflowEventList getWorkflowEventsForProcess(Id processId) throws OperationFailedException, PermissionDeniedException Gets the entire workflow log for a process. 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.- Parameters:
processId- a processId- Returns:
- the workflow events
- Throws:
NullArgumentException-processIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getWorkflowEventsByDateForProcess
WorkflowEventList getWorkflowEventsByDateForProcess(Id processId, DateTime start, DateTime end) throws OperationFailedException, PermissionDeniedException Gets the entire workflow log for this process within the given date range inclusive. 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.- Parameters:
processId- a processIdstart- start rangeend- end range- Returns:
- the workflow events
- Throws:
InvalidArgumentException-startis greater thanendNullArgumentException-processId, start, orendisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getWorkflowEventsForStep
WorkflowEventList getWorkflowEventsForStep(Id stepId) throws OperationFailedException, PermissionDeniedException Gets the workflow log for a step. 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.- Parameters:
stepId- a stepId- Returns:
- the workflow events
- Throws:
NullArgumentException-stepIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getWorkflowEventsByDateForStep
WorkflowEventList getWorkflowEventsByDateForStep(Id stepId, DateTime start, DateTime end) throws OperationFailedException, PermissionDeniedException Gets the workflow log for a step within the given date range inclusive. 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.- Parameters:
stepId- a stepIdstart- start rangeend- end range- Returns:
- the workflow events
- Throws:
InvalidArgumentException-startis greater thanendNullArgumentException-stepId, startorendisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getWorkflowEventsForWork
WorkflowEventList getWorkflowEventsForWork(Id workId) throws OperationFailedException, PermissionDeniedException Gets the workflow log for a work. 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.- Parameters:
workId- a workId- Returns:
- the workflow events
- Throws:
NullArgumentException-workIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getWorkflowEventsByDateForWork
WorkflowEventList getWorkflowEventsByDateForWork(Id workId, DateTime start, DateTime end) throws OperationFailedException, PermissionDeniedException Gets the workflow log for a work within the given date range inclusive. 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.- Parameters:
workId- a workIdstart- start rangeend- end range- Returns:
- the workflow events
- Throws:
InvalidArgumentException-startis greater thanendNullArgumentException-workId, startorendisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getWorkflowEventsForWorkAndProcess
WorkflowEventList getWorkflowEventsForWorkAndProcess(Id processId, Id workId) throws OperationFailedException, PermissionDeniedException Gets the workflow log for a work in a process. 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.- Parameters:
processId- a processIdworkId- a workId- Returns:
- the workflow events
- Throws:
NullArgumentException-workIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getWorkflowEventsByDateForWorkAndProcess
WorkflowEventList getWorkflowEventsByDateForWorkAndProcess(Id processId, Id workId, DateTime start, DateTime end) throws OperationFailedException, PermissionDeniedException Gets the workflow log for a work in a process within the given date range inclusive. 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.- Parameters:
processId- a processIdworkId- a workIdstart- start rangeend- end range- Returns:
- the workflow events
- Throws:
InvalidArgumentException-startis greater thanendNullArgumentException-workId, startorendisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getWorkflowEventsForStepAndWork
WorkflowEventList getWorkflowEventsForStepAndWork(Id stepId, Id workId) throws OperationFailedException, PermissionDeniedException Gets the workflow log for a work in this process. 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.- Parameters:
stepId- a stepIdworkId- a workId- Returns:
- the workflow events
- Throws:
NullArgumentException-stepIdorworkIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getWorkflowEventsByDateForStepAndWork
WorkflowEventList getWorkflowEventsByDateForStepAndWork(Id stepId, Id workId, DateTime start, DateTime end) throws OperationFailedException, PermissionDeniedException Gets the workflow log for a work in this process within the given date range inclusive. 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.- Parameters:
stepId- a stepIdworkId- a workIdstart- start rangeend- end range- Returns:
- the workflow events
- Throws:
InvalidArgumentException-startis greater thanendNullArgumentException-stepId, workId, startorendisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getWorkflowEventsForWorker
WorkflowEventList getWorkflowEventsForWorker(Id resourceId) throws OperationFailedException, PermissionDeniedException Gets the workflow log by an agent in this process. 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.- Parameters:
resourceId- a resourceId- Returns:
- the workflow events
- Throws:
NullArgumentException-resourceIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getWorkflowEventsByDateForWorker
WorkflowEventList getWorkflowEventsByDateForWorker(Id resourceId, DateTime start, DateTime end) throws OperationFailedException, PermissionDeniedException Gets the workflow log by the resource in this process within the given date range inclusive. 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.- Parameters:
resourceId- a resourceIdstart- start rangeend- end range- Returns:
- the workflow events
- Throws:
InvalidArgumentException-startis greater thanendNullArgumentException-resourceId, startorendisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getWorkflowEventsForWorkerAndProcess
WorkflowEventList getWorkflowEventsForWorkerAndProcess(Id resourceId, Id processId) throws OperationFailedException, PermissionDeniedException Gets the workflow log by an agent in this process. 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.- Parameters:
resourceId- a resourceIdprocessId- a processId- Returns:
- the workflow events
- Throws:
NullArgumentException-resourceIdorprocessIdisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getWorkflowEventsByDateForWorkerAndProcess
WorkflowEventList getWorkflowEventsByDateForWorkerAndProcess(Id resourceId, Id processId, DateTime start, DateTime end) throws OperationFailedException, PermissionDeniedException Gets the workflow log by the resource in this process within the given date range inclusive. 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.- Parameters:
resourceId- a resourceIdprocessId- a processIdstart- start rangeend- end range- Returns:
- the workflow events
- Throws:
InvalidArgumentException-startis greater thanendNullArgumentException-resourceId, processId, startorendisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-
getWorkflowEvents
Gets allWorkflowEvents. 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.- Returns:
- a list of
WorkflowEvents - Throws:
OperationFailedException- unable to complete requestPermissionDeniedException- authorization failure- Compliance:
mandatory- This method must be implemented.
-