OSID Logo
OSID Specifications
rules package
Version 3.1.0
Interfaceosid.rules.Result
Implementsosid.OsidResult
Used Byosid.rules.RuleEvaluationSession
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
Compliancemandatory This 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.TyperesultRecordType the type of result record to retrieve
Returnosid.rules.records.ResultRecord the result record
ErrorsNULL_ARGUMENT resultRecordType is null
OPERATION_FAILED unable to complete request
UNSUPPORTED hasRecordType(resultRecordType) is false
Compliancemandatory This method must be implemented.