/// <summary> /// Resume a bookmark /// </summary> /// <param name="trigger"> The trigger to resume </param> public void ResumeBookmark(StateTrigger trigger) { this.ResumeBookmark(trigger.ToString()); }
/// <summary> /// Resume the workflow until it becomes idle with any bookmark /// </summary> /// <param name="trigger"> The name of the bookmark </param> public void Resume(StateTrigger trigger) { this.Resume(trigger.ToString()); }
/// <summary> /// Determines if a trigger can be executed /// </summary> /// <param name="trigger"> The trigger </param> /// <returns> true if the trigger can be executed </returns> public bool CanExecute(StateTrigger trigger) { return this.Transitions != null && this.Transitions.Any(t => t == trigger.ToString()); }