OSID Logo
OSID Specifications
rules package
Version 3.0.0
Release Candidate Preview
Interfaceosid.rules.Result
Implementsosid.OsidResult
Description

The Result is the output of a rule execution.

MethodgetBooleanValue
Description

Gets a boolean result from the rule evaluation. Based on the definition of the Rule, the result may be a simple boolean value or something more complex defined in the record type.

Returnboolean true or false
CompliancemandatoryThis method must be implemented.
MethodgetResultRecord
Description

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

Parametersosid.type.TyperesultRecordTypethe type of result record to retrieve
Returnosid.rules.records.ResultRecordthe result record
ErrorsNULL_ARGUMENT resultRecordType is null
OPERATION_FAILEDunable to complete request
UNSUPPORTED hasRecordType(resultRecordType) is false
CompliancemandatoryThis method must be implemented.