RulesEngine icon indicating copy to clipboard operation
RulesEngine copied to clipboard

Support for Returning Multiple Values in OutputExpression

Open InsiyaNeo opened this issue 3 months ago • 0 comments

I want to include multiple local parameters in the output of a rule. Here's a simplified version: "Actions": { "OnSuccess": { "Name": "OutputExpression", "Context": { "Expression": "new { TempValueA = TempValueA, TempValueB = TempValueB, FinalResult = TempValueB / input.TotalUnits }" } } }

But I get this error: Exception while executing OutputExpressionAction: Expression is missing an 'as' clause When I try to return in the above way. How can I return multiple values from OutputExpression? Is there a supported way to include local params in the output?

InsiyaNeo avatar Oct 09 '25 16:10 InsiyaNeo