Search Results for

    Show / Hide Table of Contents

    Class NotificationTriggerParameter

    A base trigger parameter used to create the parameters for an TriggeredActionParameter which can configure the parameters for a custom task to be activated when a trigger is fired

    When a IActionTrigger is activated it can be configured to run any type of trigger task (those that inherit BaseTriggerTask) with associated parameters that inherit BaseTriggerParameter

    Notifies any watchers of the current trigger.
    Inheritance
    object
    SerializedParam
    ServerTaskParameter
    ItemParameter
    BaseTriggerParameter
    NotificationTriggerParameter
    Implements
    ICloneable
    INotifyPropertyChanged
    Inherited Members
    BaseTriggerParameter.ShouldAutomaticallyCreateTask(IHasSaveProcessingTask, IEntityUpdater)
    BaseTriggerParameter.DisplayUserParamOnSave(IHasSaveProcessingTask, IEntityUpdater)
    BaseTriggerParameter.AllowSaveWithNoChangesForTaskCreation(IHasSaveProcessingTask, IEntityUpdater)
    BaseTriggerParameter.CopyFromSource(BaseTriggerParameter)
    BaseTriggerParameter.TriggeredContexts
    BaseTriggerParameter.RootItemTypeID
    BaseTriggerParameter.TrigggerID
    BaseTriggerParameter.TrigggerID_Label
    BaseTriggerParameter.SaveTimeStamp
    ItemParameter.OnPropChanged(string)
    ItemParameter.ID
    ItemParameter.ID_Label
    ItemParameter.PropertyChanged
    ServerTaskParameter.AllowAutoCreateOnLockedItems
    SerializedParam.GetParam<T>(string)
    SerializedParam.GetParam<T>(byte[])
    SerializedParam.GetParam(string)
    SerializedParam.GetParam(string, bool)
    SerializedParam.GetParam(byte[])
    SerializedParam.ToSerializedString()
    SerializedParam.ToSerializedBytes()
    object.GetType()
    object.MemberwiseClone()
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    Namespace: LemonEdge.API.Core.Tasks.Parameters.Triggers
    Assembly: LemonEdge.API.dll
    Syntax
    [DataContract]
    [ServerTaskParameters("Run Notifications", "F851EE43-C65C-486A-BB60-750DF2FDAB4B", Description = "Notifies any watchers of the current trigger.")]
    public class NotificationTriggerParameter : BaseTriggerParameter, ICloneable, INotifyPropertyChanged

    Constructors

    NotificationTriggerParameter()

    Declaration
    public NotificationTriggerParameter()

    Fields

    UNIQUE_TASK_ID

    The unique id of the notification trigger task

    Declaration
    public const string UNIQUE_TASK_ID = "F851EE43-C65C-486A-BB60-750DF2FDAB4B"
    Field Value
    Type Description
    string

    Properties

    NotificationTypeID

    The UniqueNotificationTypeID of a notification, a class that implements INotificationType

    Declaration
    public Guid NotificationTypeID { get; set; }
    Property Value
    Type Description
    Guid

    NotificationWhen

    The formula to use to see if this watcher should be notified. Uses the NotificationContext for formulas.

    Declaration
    [EntityDescription("The formula to use to see if this watcher should be notified. Uses the NotificationContext for formulas.")]
    public string NotificationWhen { get; set; }
    Property Value
    Type Description
    string

    NotifyMessage

    The message to send when this watcher type is activated. Use {PropName} for the property name of the inserted/modified/deleted item, or {{Formula}} to evaluate a formula within the message. Uses the TriggerContext for formulas.

    Declaration
    [EntityDescription("The message to send when this watcher type is activated. Use {PropName} for the property name of the inserted/modified/deleted item, or {{Formula}} to evaluate a formula within the message. Uses the TriggerContext for formulas.")]
    public string NotifyMessage { get; set; }
    Property Value
    Type Description
    string

    NotifySubject

    The subject to send when this watcher type is activated. Use {PropName} for the property name of the inserted/modified/deleted item, or {{Formula}} to evaluate a formula within the subject. Uses the TriggerContext for formulas.

    Declaration
    [EntityDescription("The subject to send when this watcher type is activated. Use {PropName} for the property name of the inserted/modified/deleted item, or {{Formula}} to evaluate a formula within the subject. Uses the TriggerContext for formulas.")]
    public string NotifySubject { get; set; }
    Property Value
    Type Description
    string

    WatcherTypeID

    The type of watcher to notify. Only watchers of this IWatcherType against the trigger action item will be notified

    Declaration
    public Guid[] WatcherTypeID { get; set; }
    Property Value
    Type Description
    Guid[]

    WatcherTypeID_Label

    The label of the type of watcher to notify. Only watchers of this IWatcherType against the trigger action item will be notified

    Declaration
    public string WatcherTypeID_Label { get; set; }
    Property Value
    Type Description
    string

    WatcherTypeList

    The WatcherTypeID formatted as a comma separated list

    Declaration
    public string WatcherTypeList { get; set; }
    Property Value
    Type Description
    string

    Methods

    Clone()

    Declaration
    public NotificationTriggerParameter Clone()
    Returns
    Type Description
    NotificationTriggerParameter

    CopyFromParam(SerializedParam)

    Should be overridden by inheriting implementations to ensure all parameters values are copied from the specified source

    Declaration
    protected override void CopyFromParam(SerializedParam source)
    Parameters
    Type Name Description
    SerializedParam source

    The source instance of a SerializedParam that is of the same type as this one to copy parameter values from

    Overrides
    BaseTriggerParameter.CopyFromParam(SerializedParam)
    Remarks

    Used by the generic implementation of Clone()

    CopyFromSource(NotificationTriggerParameter)

    Declaration
    public void CopyFromSource(NotificationTriggerParameter source)
    Parameters
    Type Name Description
    NotificationTriggerParameter source

    CreateNewParam()

    Must be implemented by inheriting classes to provide a new instance of the current class type.

    Used when cloning this SerializedParam to create a new instance of the same type

    Declaration
    protected override SerializedParam CreateNewParam()
    Returns
    Type Description
    SerializedParam

    A new instance of the current SerializedParam type

    Overrides
    SerializedParam.CreateNewParam()

    GetUserFriendlyTaskInstanceIdentityInfo(IServerTask)

    Returns that this is a watcher notification recalculation task against an action trigger

    Declaration
    public override string GetUserFriendlyTaskInstanceIdentityInfo(IServerTask task)
    Parameters
    Type Name Description
    IServerTask task

    The server task for processing the action trigger notification

    Returns
    Type Description
    string

    A string stating that this is a watcher notification recalculation task against an action trigger

    Overrides
    ServerTaskParameter.GetUserFriendlyTaskInstanceIdentityInfo(IServerTask)

    Implements

    ICloneable
    INotifyPropertyChanged

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.