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 exampleInheritance
Inherited Members
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
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
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
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 |