Skip to main content

BusinessRuleNumberExpression

Numeric expression for mathematical comparisons, calculations, and range validations.

Provides comprehensive numeric comparison capabilities including equality, inequality, and range operations. Supports integer and decimal values for precise mathematical business rule conditions and calculations.

type BusinessRuleNumberExpression implements IBusinessRuleExpression {
id: ID!
type: BusinessRuleExpressionTypes!
operator: BusinessRuleNumberExpressionOperators!
number: Float!
path: String
}

Fields

BusinessRuleNumberExpression.id ● ID! non-null scalar

Unique identifier for this expression within the business rule system

BusinessRuleNumberExpression.type ● BusinessRuleExpressionTypes! non-null enum

Data type classification of the expression determining available operators and validation rules

BusinessRuleNumberExpression.operator ● BusinessRuleNumberExpressionOperators! non-null enum

Mathematical comparison operator defining how the numeric value should be evaluated against the target field

BusinessRuleNumberExpression.number ● Float! non-null scalar

Numeric value to compare against the target field using the specified operator

BusinessRuleNumberExpression.path ● String scalar

Path to the field, can be used to add additional expressions and calculations on the field. Use $ to target the field's value. When omitted the field's value is used. The expression will be used on the left hand side of the operator. Can also be used to target a specific property in a complex expression's sub-expression Check https://gorules.io/docs/rules-engine/expression-language/number for options.

Interfaces

IBusinessRuleExpression interface

Base interface for all business rule expression types defining common properties and behavior.

Expressions are the fundamental building blocks for business rule conditions and calculations. Each expression type provides specific operators and validation logic for different data types including strings, numbers, dates, arrays, and complex aggregations.