There does not seem to be a way to set the StopProcessing value for a rule.
Maybe the AddErrorResult(), AddWarningResult(), AddInformationResult() methods could be overloaded to accept a StopProcessing parameter.
I have tried to add a rule result to the list of results. As the result list is not lazily initialized in the property getter I get a null reference:
protected override void Execute(RuleContext context)
var errorResult = new RuleResult(context.Rule.RuleName, context.Rule.PrimaryProperty);
errorResult.StopProcessing = true;
I'll look into this, thanks!
Copyright (c) Marimer LLC