OSID Logo
OSID Specifications
workflow package
Version 3.1.0
Interfaceosid.workflow.WorkQuery
Implementsosid.OsidObjectQuery
Used Byosid.workflow.OfficeQuery
osid.workflow.ProcessQuery
osid.workflow.StepQuery
osid.workflow.WorkQuerySession
osid.workflow.WorkSearchSession
osid.workflow.WorkSmartOfficeSession
osid.workflow.event.WorkflowEventQuery
Description

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

MethodmatchSuspended
Description

Matches suspended work.

Parametersbooleanmatch true to match suspended work, false otherwise
Compliancemandatory This method must be implemented.
MethodclearSuspendedTerms
Description

Clears the suspended query terms.

Compliancemandatory This method must be implemented.
MethodmatchProcessId
Description

Sets the process Id for this query.

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

Clears the process Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsProcessQuery
Description

Tests if a ProcessQuery is available.

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

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

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

Clears the process query terms.

Compliancemandatory This method must be implemented.
MethodmatchStepId
Description

Sets the step Id for this query.

Parametersosid.id.IdstepId the step Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT stepId is null
Compliancemandatory This method must be implemented.
MethodclearStepIdTerms
Description

Clears the step Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsStepQuery
Description

Tests if a StepQuery is available.

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

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

Returnosid.workflow.StepQuery the step query
ErrorsUNIMPLEMENTED supportsStepyQuery() is false
Complianceoptional This method must be implemented if supportsStepQuery() is true.
MethodmatchAnyStep
Description

Matches processes that have any step.

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

Clears the step query terms.

Compliancemandatory This method must be implemented.
MethodmatchOfficeId
Description

Sets the office Id for this query to match works assigned to offices.

Parametersosid.id.IdofficeId the office Id
booleanmatch true for a positive match, false for a negative match
ErrorsNULL_ARGUMENT officeId is null
Compliancemandatory This method must be implemented.
MethodclearOfficeIdTerms
Description

Clears the office Id query terms.

Compliancemandatory This method must be implemented.
MethodsupportsOfficeQuery
Description

Tests if an OfficeQuery is available.

Returnboolean true if an office query is available, false otherwise
Compliancemandatory This method must be implemented.
MethodgetOfficeQuery
Description

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

Returnosid.workflow.OfficeQuery the office query
ErrorsUNIMPLEMENTED supportsOfficeQuery() is false
Complianceoptional This method must be implemented if supportsOfficeQuery() is true.
MethodclearOfficeTerms
Description

Clears the office query terms.

Compliancemandatory This method must be implemented.
MethodgetWorkQueryRecord
Description

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

Parametersosid.type.TypeworkRecordType a work record type
Returnosid.workflow.records.WorkQueryRecord the work query record
ErrorsNULL_ARGUMENT workRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(workRecordType) is false
Compliancemandatory This method must be implemented.