public virtual bool NotifyListenersExecute(ProcessExecutingContext context) { var notifier = new LocalMessageNotifier(this.Entity); var manager = new MessageHistoryManager(UserConnection, notifier); manager.Notify(); return(true); }
public virtual void NotifyListeners() { if (Entity.GetTypedColumnValue <Guid>("TypeId") == ActivityConsts.EmailTypeUId) { var notifier = new EmailMessageNotifier(this.Entity, UserConnection); var manager = new MessageHistoryManager(UserConnection, notifier); manager.Notify(); } }
public virtual bool ScriptTask3_c959bb6a28f640e88e18746af09758b1Execute(ProcessExecutingContext context) { if (Entity.GetTypedColumnValue <bool>("IsNeedToNotify")) { var notifier = new CaseFileMessageNotifier(this.Entity); var manager = new MessageHistoryManager(UserConnection, notifier); manager.Notify(); } return(true); }
/// <summary> /// Handles entity Saved event. /// </summary> /// <param name="sender">Event sender.</param> /// <param name="e">The <see cref="T:Terrasoft.Core.Entities.EntityAfterEventArgs" /> instance containing the /// event data.</param> public override void OnSaved(object sender, EntityAfterEventArgs e) { base.OnSaved(sender, e); Entity message = (Entity)sender; if (message.GetTypedColumnValue <bool>("IsNotPublished")) { return; } var notifier = new PortalMessageNotifier(message); var manager = new MessageHistoryManager(message.UserConnection, notifier); manager.Notify(); }