Interface: BusinessRuleComplexExpressionInput
Defined in: type/BusinessRuleComplexExpressionInput.ts:7
Represents the input for a complex epression
Properties
action
Defined in: type/BusinessRuleComplexExpressionInput.ts:22
The action to execute with this complex expression , either 'sum' a sub field that is present in the expression's path or 'count' to count the length of the filtered array.
expressions?
optionalexpressions?:BusinessRuleExpressionGroupInput[]
Defined in: type/BusinessRuleComplexExpressionInput.ts:26
The sub-expressions for this complex expression
field?
optionalfield?:string
Defined in: type/BusinessRuleComplexExpressionInput.ts:24
The path to the field to apply the action to in case the action equals 'sum'
number
number:
number
Defined in: type/BusinessRuleComplexExpressionInput.ts:11
The value to compare the result of the action applied to the sub-expressions to
operator
operator:
BusinessRuleNumberExpressionOperators
Defined in: type/BusinessRuleComplexExpressionInput.ts:9
The operator to use on the result of the action applied to the sub-expressions
path?
optionalpath?:string
Defined in: type/BusinessRuleComplexExpressionInput.ts:18
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.