Search Results for

    Show / Hide Table of Contents

    Class BaseTriggerParameter

    The base action trigger task parameter for the action trigger calculation process

    Inherits from the item server task parameter which records the id and label of the item of type RootItemTypeID this task should be calculated against

    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 these parameters. See NotificationTriggerParameter for an example
    Inheritance
    object
    SerializedParam
    ServerTaskParameter
    ItemParameter
    BaseTriggerParameter
    NotificationTriggerParameter
    Implements
    ICloneable
    INotifyPropertyChanged
    Inherited Members
    ItemParameter.OnPropChanged(string)
    ItemParameter.ID
    ItemParameter.ID_Label
    ItemParameter.PropertyChanged
    ServerTaskParameter.GetUserFriendlyTaskInstanceIdentityInfo(IServerTask)
    ServerTaskParameter.AllowAutoCreateOnLockedItems
    SerializedParam.GetParam<T>(string)
    SerializedParam.GetParam<T>(byte[])
    SerializedParam.GetParam(string)
    SerializedParam.GetParam(string, bool)
    SerializedParam.GetParam(byte[])
    SerializedParam.ToSerializedString()
    SerializedParam.ToSerializedBytes()
    SerializedParam.Clone()
    SerializedParam.CreateNewParam()
    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]
    public abstract class BaseTriggerParameter : ItemParameter, ICloneable, INotifyPropertyChanged

    Constructors

    BaseTriggerParameter()

    Declaration
    protected BaseTriggerParameter()

    Properties

    RootItemTypeID

    The type of the item that the ID is holding a reference to

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

    SaveTimeStamp

    The timestamp of when this action was triggered

    Declaration
    public DateTimeOffset? SaveTimeStamp { get; set; }
    Property Value
    Type Description
    DateTimeOffset?

    TriggeredContexts

    The list of triggered actions and their associated contexts

    Declaration
    public IDictionary<IActionTrigger, List<TriggerContext>> TriggeredContexts { get; set; }
    Property Value
    Type Description
    IDictionary<IActionTrigger, List<TriggerContext>>

    TrigggerID

    The id of the IActionTrigger that triggered this action

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

    TrigggerID_Label

    The label of the IActionTrigger that triggered this action

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

    Methods

    AllowSaveWithNoChangesForTaskCreation(IHasSaveProcessingTask, IEntityUpdater)

    This task is configured from, and triggered by, the action trigger task itself. So it should not allow the save to be enabled even with no changes

    Declaration
    public override bool AllowSaveWithNoChangesForTaskCreation(IHasSaveProcessingTask item, IEntityUpdater context)
    Parameters
    Type Name Description
    IHasSaveProcessingTask item

    The item that has been modified

    IEntityUpdater context

    The current context that it has been modified within

    Returns
    Type Description
    bool

    false

    Overrides
    ServerTaskParameter.AllowSaveWithNoChangesForTaskCreation(IHasSaveProcessingTask, IEntityUpdater)

    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
    ItemParameter.CopyFromParam(SerializedParam)
    Remarks

    Used by the generic implementation of Clone()

    CopyFromSource(BaseTriggerParameter)

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

    DisplayUserParamOnSave(IHasSaveProcessingTask, IEntityUpdater)

    This task is configured from, and triggered by, the action trigger task itself. So it should not display any parameters on save

    Declaration
    public override bool DisplayUserParamOnSave(IHasSaveProcessingTask item, IEntityUpdater context)
    Parameters
    Type Name Description
    IHasSaveProcessingTask item

    The item that has been modified

    IEntityUpdater context

    The current context that it has been modified within

    Returns
    Type Description
    bool

    false

    Overrides
    ServerTaskParameter.DisplayUserParamOnSave(IHasSaveProcessingTask, IEntityUpdater)

    ShouldAutomaticallyCreateTask(IHasSaveProcessingTask, IEntityUpdater)

    This task is configured from, and triggered by, the action trigger task itself. So it should not automatically create a task

    Declaration
    public override bool ShouldAutomaticallyCreateTask(IHasSaveProcessingTask item, IEntityUpdater context)
    Parameters
    Type Name Description
    IHasSaveProcessingTask item

    The item that has been modified

    IEntityUpdater context

    The current context that it has been modified within

    Returns
    Type Description
    bool

    false

    Overrides
    ServerTaskParameter.ShouldAutomaticallyCreateTask(IHasSaveProcessingTask, IEntityUpdater)

    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.