Class RuleHelper

This class simplifies programming constructions of rules

Inheritance
System.Object
RuleHelper
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Mediachase.Commerce.Marketing.Validators.Providers
Assembly: Mediachase.Commerce.Marketing.Validators.dll
Version: 10.8.0
Syntax
public class RuleHelper

Constructors

RuleHelper()

Declaration
public RuleHelper()

Properties

HaltAction

Gets the halt action.

Declaration
public static RuleHaltAction HaltAction { get; }
Property Value
Type Description
System.Workflow.Activities.Rules.RuleHaltAction

The halt action.

IsValidTrueAction

Gets the "this.ValidationResult.IsValid = true" action, that can be assigned to TheActions for the Rule.

Declaration
public static RuleStatementAction IsValidTrueAction { get; }
Property Value
Type Description
System.Workflow.Activities.Rules.RuleStatementAction

The is valid true action.

Methods

CreateRule(String, Int32, FilterExpressionNodeCollection)

Creates the rule.

Declaration
public static Rule CreateRule(string stringRuleName, int priority, FilterExpressionNodeCollection filters)
Parameters
Type Name Description
System.String stringRuleName

Name of the string rule.

System.Int32 priority

The priority.

FilterExpressionNodeCollection filters

The filters.

Returns
Type Description
System.Workflow.Activities.Rules.Rule