Table of Contents

Class AutomationCondition

Namespace
CMS.Automation
Assembly
CMS.Automation.dll

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

public abstract class AutomationCondition : IAutomationCondition
Inheritance
object
AutomationCondition
Implements
Extension Methods

Constructors

AutomationCondition()

protected AutomationCondition()

Methods

Evaluate(AutomationProcessContext, CancellationToken)

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

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

Parameters

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.