OSID Logo
OSID Specifications
process package
Version 3.0.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.IdstateIda state Id
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTstateId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsStateQuery() is false
ComplianceoptionalThis method must be implemented if supportsStateQuery() is true .
MethodmatchAnyState
Description

Matches processes with any states.

Parametersbooleanmatchtrue 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTprocessId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsAncestorProcessQuery() is false
ComplianceoptionalThis method must be implemented if supportsAncestorProcessQuery() is true .
MethodmatchAnyAncestorProcess
Description

Matches processes with any ancestor.

Parametersbooleanmatchtrue 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
booleanmatchtrue for a positive match, false for a negative match
ErrorsNULL_ARGUMENTprocessId 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.

Returnbooleantrue 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
ErrorsUNIMPLEMENTEDsupportsDescendantProcessQuery() is false
ComplianceoptionalThis method must be implemented if supportsDescendantProcessQuery() is true .
MethodmatchAnyDescendantProcess
Description

Matches processes with any descendant.

Parametersbooleanmatchtrue 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_ARGUMENTprocessRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTEDhasRecordType(processRecordType) is false
CompliancemandatoryThis method must be implemented.