OSID Logo
OSID Specifications
rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.rules.Condition
Implementsosid.OsidCondition
Description

The Condition is used to input conditions into a rule execution.

MethodgetConditionRecord
Description

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

Parametersosid.type.TypeconditionRecordTypethe type of condition record to retrieve
Returnosid.rules.records.ConditionRecordthe condition record
ErrorsNULL_ARGUMENT conditionRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasConditionRecordType(conditionRecordType) is false
CompliancemandatoryThis method must be implemented.