Interface ProcessQuery

All Superinterfaces:
Extensible, OsidBrowsableQuery, OsidExtensibleQuery, OsidGovernatorQuery, OsidIdentifiableQuery, OsidObjectQuery, OsidOperableQuery, OsidQuery, OsidSourceableQuery, Suppliable

public interface ProcessQuery extends OsidGovernatorQuery

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

  • Method Details

    • matchOwnerId

      void matchOwnerId(Id ownerId, boolean match)
      Sets a owner Id for this query.
      Parameters:
      ownerId - a owner Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - ownerId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearOwnerIdTerms

      void clearOwnerIdTerms()
      Clears the owner Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsOwnerQuery

      boolean supportsOwnerQuery()
      Tests if a ResourceQuery is available.
      Returns:
      true if a owner query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getOwnerQuery

      ResourceQuery getOwnerQuery()
      Gets the query for a owner. Multiple retrievals produce a nested OR term.
      Returns:
      the owner query
      Throws:
      UnimplementedException - supportsOwnerQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsOwnerQuery()} is {@code true} .
    • matchAnyOwner

      void matchAnyOwner(boolean match)
      Matches objects with any owner.
      Parameters:
      match - true to match objects with any owner, false to match objects with no owner
      Compliance:
      mandatory - This method must be implemented.
    • clearOwnerTerms

      void clearOwnerTerms()
      Clears the owner query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchEnabled

      void matchEnabled(boolean match)
      Matches enabled processes.
      Specified by:
      matchEnabled in interface OsidOperableQuery
      Parameters:
      match - true for a positive match, false for a negative match
      Compliance:
      mandatory - This method must be implemented.
    • clearEnabledTerms

      void clearEnabledTerms()
      Clears the enabled query terms.
      Specified by:
      clearEnabledTerms in interface OsidOperableQuery
      Compliance:
      mandatory - This method must be implemented.
    • matchInitialStepId

      void matchInitialStepId(Id stepId, boolean match)
      Sets the initial step Id for this query.
      Parameters:
      stepId - the step Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - stepId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearInitialStepIdTerms

      void clearInitialStepIdTerms()
      Clears the initial stap Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsInitialStepQuery

      boolean supportsInitialStepQuery()
      Tests if a StepQuery is available.
      Returns:
      true if a step query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getInitialStepQuery

      StepQuery getInitialStepQuery()
      Gets the query for a step. Multiple retrievals produce a nested OR term.
      Returns:
      the step query
      Throws:
      UnimplementedException - supportsInitialStepQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsInitialStepQuery()} is {@code true} .
    • clearInitialStepTerms

      void clearInitialStepTerms()
      Clears the initial step terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchInitialStateId

      void matchInitialStateId(Id stateId, boolean match)
      Sets the initial state Id for this query.
      Parameters:
      stateId - the state Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - stateId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearInitialStateIdTerms

      void clearInitialStateIdTerms()
      Clears the initial state Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsInitialStateQuery

      boolean supportsInitialStateQuery()
      Tests if a StateQuery is available.
      Returns:
      true if a state query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getInitialStateQuery

      StateQuery getInitialStateQuery()
      Gets the query for a state. Multiple retrievals produce a nested OR term.
      Returns:
      the state query
      Throws:
      UnimplementedException - supportsInitialStateQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsInitialStateQuery()} is {@code true} .
    • clearInitialStateTerms

      void clearInitialStateTerms()
      Clears the state terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchStepId

      void matchStepId(Id stepId, boolean match)
      Sets the step Id for this query.
      Parameters:
      stepId - the step Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - stepId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearStepIdTerms

      void clearStepIdTerms()
      Clears the step Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsStepQuery

      boolean supportsStepQuery()
      Tests if a StepQuery is available.
      Returns:
      true if a step query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getStepQuery

      StepQuery getStepQuery()
      Gets the query for a step Multiple retrievals produce a nested OR term.
      Returns:
      the step query
      Throws:
      UnimplementedException - supportsStepyQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsStepQuery()} is {@code true} .
    • matchAnyStep

      void matchAnyStep(boolean match)
      Matches processes that have any step.
      Parameters:
      match - true to match processes with any step, false to match processes with no step
      Compliance:
      mandatory - This method must be implemented.
    • clearStepTerms

      void clearStepTerms()
      Clears the step query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchWorkId

      void matchWorkId(Id workId, boolean match)
      Sets the work Id for this query.
      Parameters:
      workId - the work Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - workId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearWorkIdTerms

      void clearWorkIdTerms()
      Clears the work Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsWorkQuery

      boolean supportsWorkQuery()
      Tests if a WorkQuery is available.
      Returns:
      true if a work query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getWorkQuery

      WorkQuery getWorkQuery()
      Gets the query for a work. Multiple retrievals produce a nested OR term.
      Returns:
      the work query
      Throws:
      UnimplementedException - supportsWorkQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsWorkQuery()} is {@code true} .
    • matchAnyWork

      void matchAnyWork(boolean match)
      Matches processs that have any work.
      Parameters:
      match - true to match processes with any work, false to match processes with no work
      Compliance:
      mandatory - This method must be implemented.
    • clearWorkTerms

      void clearWorkTerms()
      Clears the work query terms.
      Compliance:
      mandatory - This method must be implemented.
    • matchOfficeId

      void matchOfficeId(Id officeId, boolean match)
      Sets the office Id for this query to match process assigned to offices.
      Parameters:
      officeId - the office Id
      match - true for a positive match, false for a negative match
      Throws:
      NullArgumentException - officeId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearOfficeIdTerms

      void clearOfficeIdTerms()
      Clears the office Id query terms.
      Compliance:
      mandatory - This method must be implemented.
    • supportsOfficeQuery

      boolean supportsOfficeQuery()
      Tests if an OfficeQuery is available.
      Returns:
      true if an office query is available, false otherwise
      Compliance:
      mandatory - This method must be implemented.
    • getOfficeQuery

      OfficeQuery getOfficeQuery()
      Gets the query for an office. Multiple retrievals produce a nested OR term.
      Returns:
      the office query
      Throws:
      UnimplementedException - supportsOfficeQuery() is false
      Compliance:
      optional - This method must be implemented if {@code supportsOfficeQuery()} is {@code true} .
    • clearOfficeTerms

      void clearOfficeTerms()
      Clears the office query terms.
      Compliance:
      mandatory - This method must be implemented.
    • getProcessQueryRecord

      ProcessQueryRecord getProcessQueryRecord(Type processRecordType) throws OperationFailedException
      Gets the process query record corresponding to the given Process record Type .Multiple record retrievals produce a nested OR term.
      Parameters:
      processRecordType - a process record type
      Returns:
      the process query record
      Throws:
      NullArgumentException - processRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(processRecordType) is false
      Compliance:
      mandatory - This method must be implemented.