OSID Logo
OSID Specifications
workflow package
Version 3.0.0
Interfaceosid.workflow.ProcessSearchSession
Implementsosid.workflow.ProcessQuerySession
Used Byosid.workflow.WorkflowManager
osid.workflow.WorkflowProxyManager
Description

This session provides methods for searching among Processes . The search query is constructed using the ProcessQuery .

getProcesssByQuery() is the basic search method and returns a list of Processes . A more advanced search may be performed with getProcessesBySearch() .It accepts a ProcessSearch in addition to the query for the purpose of specifying additional options affecting the entire search, such as ordering. getProcessesBySearch() returns a ProcessSearchResults that can be used to access the resulting ProcessList or be used to perform a search within the result set through ProcessSearch .

This session defines views that offer differing behaviors for searching.

  • federated office view: searches include processes in offices of which this office is an ancestor in the office hierarchy
  • isolated office view: searches are restricted to processes in this office

Processes may have a query record indicated by their respective record types. The query record is accessed via the ProcessQuery .

MethodgetProcessSearch
Description

Gets a process search.

Returnosid.workflow.ProcessSearchthe process search
CompliancemandatoryThis method must be implemented.
MethodgetProcessSearchOrder
Description

Gets a process search order. The ProcessSearchOrder is supplied to a ProcessSearch to specify the ordering of results.

Returnosid.workflow.ProcessSearchOrderthe process search order
CompliancemandatoryThis method must be implemented.
MethodgetProcessesBySearch
Description

Gets the search results matching the given search query using the given search.

Parametersosid.workflow.ProcessQueryprocessQuerythe process query
osid.workflow.ProcessSearchprocessSearchthe process search
Returnosid.workflow.ProcessSearchResultsthe process search results
ErrorsNULL_ARGUMENTprocessQuery or processSearch is null
OPERATION_FAILEDunable to complete request
PERMISSION_DENIEDauthorization failure
UNSUPPORTEDprocessQuery or processSearch is not of this service
CompliancemandatoryThis method must be implemented.
MethodgetProcessQueryFromInspector
Description

Gets a process query from an inspector. The inspector is available from a ProcessSearchResults .

Parametersosid.workflow.ProcessQueryInspectorprocessQueryInspectora process query inspector
Returnosid.workflow.ProcessQuerythe process query
ErrorsNULL_ARGUMENTprocessQueryInspector is null
UNSUPPORTEDprocessQueryInspector is not of this service
CompliancemandatoryThis method must be implemented.