OSID Logo
OSID Specifications
process package
Version 3.0.0
Release Candidate Preview
Interfaceosid.process.ProcessQuery
Implementsosid.OsidCatalogQuery
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.IdstateIda state Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT stateId is null
CompliancemandatoryThis method must be implemented.
MethodclearStateIdTerms
Description

Clears the state Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsStateQuery
Description

Tests if a StateQuery is available.

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

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

Returnosid.process.StateQuerythe state query
ErrorsUNIMPLEMENTED supportsStateQuery() is false
ComplianceoptionalThis 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
CompliancemandatoryThis method must be implemented.
MethodclearStateTerms
Description

Clears the state terms.

CompliancemandatoryThis 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.IdprocessIda process Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT processId is null
CompliancemandatoryThis method must be implemented.
MethodclearAncestorProcessIdTerms
Description

Clears the ancestor process Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsAncestorProcessQuery
Description

Tests if a ProcessQuery is available.

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

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

Returnosid.process.ProcessQuerythe process query
ErrorsUNIMPLEMENTED supportsAncestorProcessQuery() is false
ComplianceoptionalThis 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
CompliancemandatoryThis method must be implemented.
MethodclearAncestorProcessTerms
Description

Clears the ancestor process terms.

CompliancemandatoryThis 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.IdprocessIda process Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT processId is null
CompliancemandatoryThis method must be implemented.
MethodclearDescendantProcessIdTerms
Description

Clears the descendant process Id terms.

CompliancemandatoryThis method must be implemented.
MethodsupportsDescendantProcessQuery
Description

Tests if a ProcessQuery is available.

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

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

Returnosid.process.ProcessQuerythe process query
ErrorsUNIMPLEMENTED supportsDescendantProcessQuery() is false
ComplianceoptionalThis 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
CompliancemandatoryThis method must be implemented.
MethodclearDescendantProcessTerms
Description

Clears the descendant process terms.

CompliancemandatoryThis 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.TypeprocessRecordTypea process record type
Returnosid.process.records.ProcessQueryRecordthe process query record
ErrorsNULL_ARGUMENT processRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(processRecordType) is false
CompliancemandatoryThis method must be implemented.