OSID Logo
OSID Specifications
rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.rules.Rule
Implementsosid.OsidRule
Description

A Rule represents an entity that can be executed in a rules engine.

MethodgetRuleRecord
Description

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

Parametersosid.type.TyperuleRecordTypethe type of rule record to retrieve
Returnosid.rules.records.RuleRecordthe rule record
ErrorsNULL_ARGUMENT ruleRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(ruleRecordType) is false
CompliancemandatoryThis method must be implemented.