/// <summary> /// This no longer clones the incoming trigger. If your trigger will be reused on other /// transitions, be sure to feed a copy in rather than the original instance. /// </summary> /// <param name="trigger"></param> public void UseTrigger(IUmlTrigger trigger) { if (trigger == null) { return; } Triggers.Add(trigger); trigger.Tripped += HandleTriggerTripped; }
public void UseRuntimeTrigger(IUmlTrigger trigger) { if (!_isEditable) { throw new ActivityMachineException("Assembly can only be done while the machine is in an edit mode."); } RuntimeTriggers.Add(trigger); if (trigger is UmlTrigger) { (trigger as UmlTrigger).LogType = LogType; } }
public void UseExecuteTrigger(IUmlTrigger trigger) { ExecuteTriggers.Add(trigger); }