Class: ResultBase

bo.rules. ResultBase

Serves as the base class for the failed result of executing a rule.

new ResultBase(ruleName, propertyName, message)

Creates a new rule result object.

Parameters:
Name Type Description
ruleName string

The name of the rule.

propertyName string

The name of the property the rule belongs to.

message string

Human-readable description of the reason of the failure.

Throws:

Members

<readonly> isPreserved :boolean

Indicates whether the broken rule of this failure is preserved when a new verification starts. Typically the broken rules of authorization rules are retained.

Type:
  • boolean

<readonly> message :string

Human-readable description of the reason of the failure.

Type:
  • string

<readonly> propertyName :string

The name of the property the rule belongs to.

Type:
  • string

<readonly> ruleName :string

The name of the rule.

Type:
  • string

<readonly> severity :bo.rules.RuleSeverity

The severity of the rule failure.

Type:

<readonly> stopsProcessing :boolean

Indicates whether processing the rules of the property should stop.

Type:
  • boolean

Methods

toBrokenRule() → {bo.rules.BrokenRule}

Maps the rule result to broken rule.

Returns:

The broken rule companion of the rule result.

Type
bo.rules.BrokenRule
If you find bugs or have feature requests, please let us know.

JavaScript business objects ♦ Copyright © 2014-2016 Logikum, Ltd.
Documentation generated by JSDoc 3.2.2 on 2015. December 31. using the DocStrap template.