Skip to main content

BusinessRuleAttributeExpression

Condition on an attribute, matched by attribute name and value.

The value is compared against whichever value the attribute stores, so the rule does not have to say whether the attribute is text, enum, integer or decimal:

  • 'string' is compared against text values (only those in 'language' when it is given) and enum values
  • 'number' is compared against integer and decimal values

The "has at least one attribute" and "has at least one value" steps of an equivalent complex expression are part of this expression.

type BusinessRuleAttributeExpression implements IBusinessRuleExpression {
id: ID!
type: BusinessRuleExpressionTypes!
attributeName: String!
language: String
operator: BusinessRuleAttributeExpressionOperators!
string: String
number: Float
path: String
}

Fields​

BusinessRuleAttributeExpression.id ● ID! non-null scalar​

Unique identifier for this expression within the business rule system

BusinessRuleAttributeExpression.type ● BusinessRuleExpressionTypes! non-null enum​

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

BusinessRuleAttributeExpression.attributeName ● String! non-null scalar​

Name of the attribute to match, for example 'LOAD_INDEX'

BusinessRuleAttributeExpression.language ● String scalar​

Language of the text values to compare, for example 'NL'. Only used with 'string'

BusinessRuleAttributeExpression.operator ● BusinessRuleAttributeExpressionOperators! non-null enum​

How the attribute's values are compared with 'string' or 'number'

BusinessRuleAttributeExpression.string ● String scalar​

Text value to compare against text and enum values. For 'existsInArray', a comma-separated list of values

BusinessRuleAttributeExpression.number ● Float scalar​

Numeric value to compare against integer and decimal values

BusinessRuleAttributeExpression.path ● String scalar​

Attribute collection compared: '#.attributes.items' (inside the order items condition), 'order.user.attributes.items' or 'order.company.attributes.items'. Not set when the expression uses the column's value.

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.