Skip to main content

BusinessRuleStringExpression

String-based expression for text matching, pattern recognition, and string operations.

Provides comprehensive string comparison capabilities including exact matching, pattern matching, and array membership testing. Supports case-sensitive operations and various string manipulation functions for flexible text-based business rule conditions.

type BusinessRuleStringExpression implements IBusinessRuleExpression {
id: ID!
type: BusinessRuleExpressionTypes!
operator: BusinessRuleStringExpressionOperators!
string: String!
path: String
}

Fields

BusinessRuleStringExpression.id ● ID! non-null scalar

Unique identifier for this expression within the business rule system

BusinessRuleStringExpression.type ● BusinessRuleExpressionTypes! non-null enum

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

BusinessRuleStringExpression.operator ● BusinessRuleStringExpressionOperators! non-null enum

String comparison operator defining how the string value should be evaluated against the target field

BusinessRuleStringExpression.string ● String! non-null scalar

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

BusinessRuleStringExpression.path ● String scalar

Path to the field, can be used to add additional expressions and calulations 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/string 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.