OSID Logo
OSID Specifications
rules check package
Version 3.1.0
Interfaceosid.rules.check.Instruction
Implementsosid.OsidRelationship
osid.OsidRuleApplicator
Used Byosid.rules.check.InstructionAdminSession
osid.rules.check.InstructionList
osid.rules.check.InstructionLookupSession
Description

A Instruction appliies a Check to an Agenda.

MethodgetAgendaId
Description

Gets the Id of the agenda.

Returnosid.id.Id the agenda Id
Compliancemandatory This method must be implemented.
MethodgetAgenda
Description

Gets the agenda.

Returnosid.rules.check.Agenda the agenda
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetCheckId
Description

Gets the Id of the check.

Returnosid.id.Id the check Id
Compliancemandatory This method must be implemented.
MethodgetCheck
Description

Gets the check.

Returnosid.rules.check.Check the check
ErrorsOPERATION_FAILED unable to complete request
Compliancemandatory This method must be implemented.
MethodgetMessage
Description

Gets the message to be returned upon failure of the check evaluation.

Returnosid.locale.DisplayText the message
Compliancemandatory This method must be implemented.
MethodisWarning
Description

Tests if failure of the check should be interpreted as a warning and not a failure.

Returnboolean true if this is a warning, false if an error
Compliancemandatory This method must be implemented.
MethodcontinueOnFail
Description

Tests if evaluation of the next instruction should continue if the check in this instruction fails. While the overall evaluation of the agenda still fails, if true, allows for other messages to be gathered.

Returnboolean true if this processing should continue on failure, false if processing should cease upon failure
Compliancemandatory This method must be implemented.
MethodbreakOnSuccess
Description

Tests if evaluation of the next instruction should continue if the check in this instruction succeeds. This flag instructs the evaluator to stop evaluation and return success if this check is positive.

Returnboolean true if this processing should break on success, false if processing should continue
Compliancemandatory This method must be implemented.
Methodorder
Description

The processing order for this Instruction .

Returninteger the processing order
Compliancemandatory This method must be implemented.
MethodgetInstructionRecord
Description

Gets the instruction record corresponding to the given Instruction record Type. This method is used to retrieve an object implementing the requested record. The instructionRecordType may be the Type returned in getRecordTypes() or any of its parents in a Type hierarchy where hasRecordType(instructionRecordType) is true.

Parametersosid.type.TypeinstructionRecordType the type of instruction record to retrieve
Returnosid.rules.check.records.InstructionRecord the instruction record
ErrorsNULL_ARGUMENT instructionRecordType is null
OPERATION_FAILED unable to complete request
PERMISSION_DENIED authorization failure occurred
UNSUPPORTED hasRecordType(instructionRecordType) is false
Compliancemandatory This method must be implemented.