Table of Contents

Class AutomationCondition<TProperties>

Namespace
CMS.Automation
Assembly
CMS.Automation.dll

Base class for automation conditions with configurable step properties. Extend this class to define a custom automation condition step with configurable properties that branches the process based on the returned value.

public abstract class AutomationCondition<TProperties> : IAutomationCondition where TProperties : IAutomationConditionProperties, new()

Type Parameters

TProperties

The type of the step properties configured in the automation builder UI. A plain class implementing IAutomationConditionProperties, with its properties annotated with form component attributes.

Inheritance
object
AutomationCondition<TProperties>
Implements
Extension Methods

Constructors

AutomationCondition()

protected AutomationCondition()

Methods

Evaluate(TProperties, AutomationProcessContext, CancellationToken)

Evaluates the automation condition step and returns the branch the automation process should follow.

public abstract Task<bool> Evaluate(TProperties properties, AutomationProcessContext context, CancellationToken cancellationToken)

Parameters

properties TProperties

Step properties configured in the automation builder.

context AutomationProcessContext

Context providing runtime data for the automation condition step evaluation.

cancellationToken CancellationToken

Cancellation token.

Returns

Task<bool>

true to follow the true branch; false to follow the false branch.