Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Sitecore rule engine condition to determine if the current user is in a particular engagement plan state
public class IsInEngagementStateCondition<T> : WhenCondition<T> where T : RuleContext
public ID StateId { get; set; }
protected override bool Execute(T ruleContext)
var automationStateManager = Tracker.Current.Session.CreateAutomationStateManager();
return automationStateManager.IsInEngagementState(StateId);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment