Esempio n. 1
0
 /// <summary>
 ///   Resume a bookmark
 /// </summary>
 /// <param name="trigger"> The trigger to resume </param>
 public void ResumeBookmark(StateTrigger trigger)
 {
     this.ResumeBookmark(trigger.ToString());
 }
Esempio n. 2
0
 /// <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());
 }
Esempio n. 3
0
 /// <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());
 }