Table of Contents

Class CallExpression

Namespace
RuleWright.Core
Assembly
RuleWright.Core.dll

A value expression that invokes a registered value function. In JSON, { "call": "RoundTo", "operands": [ { "field": "Order.Total" }, 2 ] }. The function itself is C# registered on the engine builder (RuleWrightBuilder.RegisterValueFunction), so the rule document stays pure data: it names the function, it never embeds code. An unregistered name fails at LoadRuleSet, exactly as an unregistered custom condition function does.

public sealed class CallExpression : ValueExpression
Inheritance
CallExpression
Inherited Members

Constructors

CallExpression(string, IEnumerable<ValueExpression>?)

Creates a call expression.

Properties

Name

The case-sensitive registered function name.

Operands

The argument expressions, in document order; empty for a no-argument call.