Class Trigger
- Namespace
- ArcanaDevelopment.adTempus.Client
- Assembly
- ArcanaDevelopment.adTempus.Client.dll
Base class for Triggers that determine when a job will execute
public abstract class Trigger : ADTObject, ISupportJobVariables
- Inheritance
-
objectTrigger
- Implements
- Derived
Remarks
A Trigger can only be assigned to a single Job; Triggers cannot be shared.
Properties
ClassKeyName
The key name for the class.
public override string ClassKeyName { get; }
Property Value
- string
Remarks
This name the name used by adTempus to identify the class and is intended for programmatic use only. Use the ClassName for a user-friendly name.
DescriptionOverride
Override for the system-generated description of the object
public string DescriptionOverride { get; set; }
Property Value
- string
Remarks
This property is for use by user interface extensions
Enabled
Indicates whether the trigger is enabled
public bool Enabled { get; set; }
Property Value
- bool
Remarks
Disabled triggers are ignored and do not cause the job to trigger
IgnoreExclusionPeriods
Determines whether this trigger ignores any ExclusionPeriods that otherwise would apply.
[RequiredVersion(5, 0, 0, 0)]
public bool IgnoreExclusionPeriods { get; set; }
Property Value
- bool
Remarks
This setting is not currently exposed through the UI.
JobVariables
Additional (or overridden) Job Variables that are passed to the job when it is triggered.
public JobVariableCollection JobVariables { get; }
Property Value
MinimumInterval
The minimum interval between triggers.
public TimeSpan MinimumInterval { get; set; }
Property Value
- TimeSpan
Remarks
If this value is set, then the trigger will ignore any events that occur within the specified time after the last time this trigger fired.
Name
Optional Name for the trigger
public string Name { get; set; }
Property Value
- string
SelectionScript
Optional Script used to perform additional processing before the job is triggered
public Script SelectionScript { get; set; }
Property Value
UserInterfaceExtensionData
Extension data for the customer user interface for this object
public string UserInterfaceExtensionData { get; set; }
Property Value
- string
UserInterfaceExtensionID
Extension ID of the customer user interface for this object
public string UserInterfaceExtensionID { get; set; }
Property Value
- string
Methods
FindOwningObject()
Get the owner of this object based on relationships.
protected override ADTObject FindOwningObject()
Returns
- ADTObject
The owning object, or null if the object is not owned by another object or the owner has not been set.
GetInheritedVariables(bool)
Gets a collection containing the JobVariables inherited by this object, and optionally the variables for the object itself.
public JobVariableCollection GetInheritedVariables(bool includeSelf)
Parameters
| Name | Type | Description |
|---|---|---|
includeSelf |
bool | If true the returned collection contains both inherited variables and variables defined at this level. If false the results only include inherited variables. |
Returns
GetObjectDescription()
Gets a description of the object's key settings.
protected override string GetObjectDescription()
Returns
- string
Remarks
This method is called by GetDescription() to get a user-friendly description of the object (such as its key settings) for display to the user. The description should contain enough information to distinguish this object from others of the same class.
GetTriggerDescription()
protected abstract string GetTriggerDescription()
Returns
- string
WriteToConfigurationReport(IADTObjectConfigurationReportWriter)
Writes the object and any contained objects to a configuration report
public override void WriteToConfigurationReport(IADTObjectConfigurationReportWriter reportBuilder)
Parameters
| Name | Type | Description |
|---|---|---|
reportBuilder |
IADTObjectConfigurationReportWriter | The report builder to write the object to. |
Inherited Members
- ADTObject.EffectivePermissions
- ADTObject.OnNewEntity()
- ADTObject.OnEntityReloaded()
- ADTObject.LastModified
- ADTObject.CreationTimestamp
- ADTObject.FromController
- ADTObject.CustomProperties
- ADTObject.Description
- ADTObject.DescriptionTextType
- ADTObject.OID
- ADTObject.ClassID
- ADTObject.BindingDescription
- ADTObject.ToString()
- ADTObject.ParentObject
- ADTObject.CanPerform(SecurityPermission)
- ADTObject.Duplicate()
- ADTObject.CheckForStub(string, string)
- ADTObject.DataContext
- ADTObject.AccessMask
- ADTObject.InitializeFromEntity()
- ADTObject.Validate(MessageCollection)
- ADTObject.SupportedSecurityActions
- ADTObject.SupportedSecurityInheritanceOptions
- ADTObject.AddStandardSecurityActions(Dictionary<int, string>, string)
- ADTObject.AddSupportedSecurityAction(Dictionary<int, string>, SecurityPermission, string)
- ADTObject.GetTopLevelOwner()
- ADTObject.GetConfigurationReport()
- ADTObject.GetConfigurationReport(bool)
- ADTObject.IsReadOnly
- ADTObject.SerializeCustomProperties()
- ObjectBase.IsDirty
- ObjectBase.IsNew
- ObjectBase.IsStub
- ObjectBase.IsDependent
- ObjectBase.ClassName
- ObjectBase.GetDescriptionWithClassName()
- ObjectBase.GetDescription()
- ObjectBase.HideFieldValueInTextOutput(string)
- ObjectBase.BeginEdit()
- ObjectBase.BeginEdit(UndoLevelAction)
- ObjectBase.CommitEdit(Guid)
- ObjectBase.CommitEdit()
- ObjectBase.UndoEdit()
- ObjectBase.UndoEdit(Guid)