OSID Logo
OSID Specifications
process package
Version 3.1.0
Interfaceosid.process.ProcessQuery
Implementsosid.OsidCatalogQuery
Used Byosid.process.ProcessQuery
osid.process.ProcessQuerySession
osid.process.ProcessSearchSession
osid.process.StateQuery
Description

This is the query for searching processes. Each method specifies an AND term while multiple invocations of the same method produce a nested OR.

MethodmatchStateId
Description

Sets the state Id for this query.

Parametersosid.id.IdstateId a state Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT stateId is null
Compliancemandatory This method must be implemented.
MethodclearStateIdTerms
Description

Clears the state Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsStateQuery
Description

Tests if a StateQuery is available.

Returnboolean true if a state query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetStateQuery
Description

Gets the query for a state. Multiple retrievals produce a nested OR term.

Returnosid.process.StateQuery the state query
ErrorsUNIMPLEMENTED supportsStateQuery() is false
Complianceoptional This method must be implemented if supportsStateQuery() is true.
MethodmatchAnyState
Description

Matches processes with any states.

Parametersbooleanmatch true to match processes with any states, false to match processes with no states
Compliancemandatory This method must be implemented.
MethodclearStateTerms
Description

Clears the state terms.

Compliancemandatory This method must be implemented.
MethodmatchAncestorProcessId
Description

Sets the process Id for this query to match processes that have the specified process as an ancestor.

Parametersosid.id.IdprocessId a process Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT processId is null
Compliancemandatory This method must be implemented.
MethodclearAncestorProcessIdTerms
Description

Clears the ancestor process Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsAncestorProcessQuery
Description

Tests if a ProcessQuery is available.

Returnboolean true if a process query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetAncestorProcessQuery
Description

Gets the query for a process. Multiple retrievals produce a nested OR term.

Returnosid.process.ProcessQuery the process query
ErrorsUNIMPLEMENTED supportsAncestorProcessQuery() is false
Complianceoptional This method must be implemented if supportsAncestorProcessQuery() is true.
MethodmatchAnyAncestorProcess
Description

Matches processes with any ancestor.

Parametersbooleanmatch true to match process with any ancestor, false to match root processes
Compliancemandatory This method must be implemented.
MethodclearAncestorProcessTerms
Description

Clears the ancestor process terms.

Compliancemandatory This method must be implemented.
MethodmatchDescendantProcessId
Description

Sets the process Id for this query to match that have the specified process as a descendant.

Parametersosid.id.IdprocessId a process Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT processId is null
Compliancemandatory This method must be implemented.
MethodclearDescendantProcessIdTerms
Description

Clears the descendant process Id terms.

Compliancemandatory This method must be implemented.
MethodsupportsDescendantProcessQuery
Description

Tests if a ProcessQuery is available.

Returnboolean true if a process query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetDescendantProcessQuery
Description

Gets the query for a process. Multiple retrievals produce a nested OR term.

Returnosid.process.ProcessQuery the process query
ErrorsUNIMPLEMENTED supportsDescendantProcessQuery() is false
Complianceoptional This method must be implemented if supportsDescendantProcessQuery() is true.
MethodmatchAnyDescendantProcess
Description

Matches processes with any descendant.

Parametersbooleanmatch true to match process with any descendant, false to match leaf processes
Compliancemandatory This method must be implemented.
MethodclearDescendantProcessTerms
Description

Clears the descendant process terms.

Compliancemandatory This method must be implemented.
MethodgetProcessQueryRecord
Description

Gets the process query record corresponding to the given Process record Type .Multiple retrievals produce a nested OR term.

Parametersosid.type.TypeprocessRecordType a process record type
Returnosid.process.records.ProcessQueryRecord the process query record
ErrorsNULL_ARGUMENT processRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(processRecordType) is false
Compliancemandatory This method must be implemented.