Search Results for

    Show / Hide Table of Contents

    Interface IDefaultWatcher

    The system entity for a Default Watcher, which automatically creates configured watchers against specified new items

    See https://help.lemonedge.com/help/settings/enterprise-tools/default-watchers/intro.html for more information

    Inherited Members
    IBaseEntity.GetLabel(string)
    IBaseEntity.SetLabel(string, string)
    IBaseEntity.SetSilentLabel(string, string)
    IBaseEntity.AccountID
    IBaseEntity.ID
    IBaseEntity.LastUpdated
    IBaseEntity.ModifiedByUserID
    IBaseEntity.CanvasID
    IBaseEntity.AlgorithmStepID
    IBaseEntity.SafeID
    IEquatable<IBaseEntity>.Equals(IBaseEntity)
    INotifyPropertyChanged.PropertyChanged
    INotifyPropertyChanging.PropertyChanging
    ICloneableAsync.Clone(object)
    ICloneableAsync.CopyFromSource(object)
    ICanTrackProperties.HasTrackedPropertyChanged(string)
    ICanTrackProperties.OriginalTrackedPropertyValue(string)
    ICanTrackProperties.OriginalTrackedPropertyValue<T>(string)
    ICanTrackProperties.ClearTrackedOriginalValues()
    ICanTrackProperties.GetAllOriginalTrackedPropertyValues()
    Namespace: LemonEdge.API.Entities.Workflow
    Assembly: LemonEdge.API.dll
    Syntax
    [EntityDefinition(EntityID.DefaultWatcher, "dbo.LT_DefaultWatchers", "DefaultWatcher", IsStandingDataEntity = true, HelpURL = "help/settings/enterprise-tools/default-watchers/intro.html")]
    [DefaultEntityIcon(ImageType.Eye)]
    public interface IDefaultWatcher : IBaseEntity, IEquatable<IBaseEntity>, INotifyPropertyChanged, INotifyPropertyChanging, ICloneableAsync, ICanTrackProperties

    Properties

    CurrentRoleID

    Indicates to create a new Watcher attached to the new item with the current Role set as the Watcher

    Declaration
    [EntityProperty(SQLType.Bit, false)]
    [EntityDescription("Add the current role as a watcher.")]
    bool CurrentRoleID { get; set; }
    Property Value
    Type Description
    bool

    CurrentTeamID

    Indicates to create a new Watcher attached to the new item with the current Team set as the Watcher

    Declaration
    [EntityProperty(SQLType.Bit, false)]
    [EntityDescription("Add the current users team as a watcher.")]
    bool CurrentTeamID { get; set; }
    Property Value
    Type Description
    bool

    CurrentUserID

    Indicates to create a new Watcher attached to the new item with the current User set as the Watcher

    Declaration
    [EntityProperty(SQLType.Bit, false)]
    [EntityDescription("Add the current user as a watcher.")]
    bool CurrentUserID { get; set; }
    Property Value
    Type Description
    bool

    EntityTypeID

    [Key] The Entity Type to attach this Watcher to when new instances of it are created

    Declaration
    [EntityProperty(SQLType.UniqueIdentifier, false, IsEntityTypeLink = true)]
    [EntityKeyProperty]
    [RequiredNoDefaultIDValidation]
    Guid EntityTypeID { get; set; }
    Property Value
    Type Description
    Guid

    RoleFormula

    Indicates to create a new Watcher attached to the new item with the result of this formula as the Role set as the Watcher

    Declaration
    [EntityProperty(SQLType.NVarChar, true)]
    [EntityDescription("Add the specified role from the formula result.")]
    string RoleFormula { get; set; }
    Property Value
    Type Description
    string

    RoleID

    Links to IRole. Indicates to create a new Watcher attached to the new item with the specified Role set as the Watcher

    Declaration
    [EntityProperty(SQLType.UniqueIdentifier, true)]
    [EntityRelationship(EntityID.Roles, "ID", SingleJoinType.ZeroToOne, "Role", "Default Watchers", DeleteWithRelationship = true)]
    [EntityDescription("The role to add as a watcher.")]
    Guid? RoleID { get; set; }
    Property Value
    Type Description
    Guid?

    TeamFormula

    Indicates to create a new Watcher attached to the new item with the result of this formula as the Team set as the Watcher

    Declaration
    [EntityProperty(SQLType.NVarChar, true)]
    [EntityDescription("Add the specified team from the formula result.")]
    string TeamFormula { get; set; }
    Property Value
    Type Description
    string

    TeamID

    Links to ITeam. Indicates to create a new Watcher attached to the new item with the specified Team set as the Watcher

    Declaration
    [EntityProperty(SQLType.UniqueIdentifier, true)]
    [EntityRelationship(EntityID.Teams, "ID", SingleJoinType.ZeroToOne, "Team", "Default Watchers", DeleteWithRelationship = true)]
    [EntityDescription("The team to add as a watcher.")]
    Guid? TeamID { get; set; }
    Property Value
    Type Description
    Guid?

    UserFormula

    Indicates to create a new Watcher attached to the new item with the result of this formula as the User set as the Watcher

    Declaration
    [EntityProperty(SQLType.NVarChar, true)]
    [EntityDescription("Add the specified user from the formula result.")]
    string UserFormula { get; set; }
    Property Value
    Type Description
    string

    UserID

    Links to IUser. Indicates to create a new Watcher attached to the new item with the specified User set as the Watcher

    Declaration
    [EntityProperty(SQLType.UniqueIdentifier, true)]
    [EntityRelationship(EntityID.Users, "ID", SingleJoinType.ZeroToOne, "User", "Default Watchers", DeleteWithRelationship = true)]
    [EntityDescription("The user to add as a watcher.")]
    Guid? UserID { get; set; }
    Property Value
    Type Description
    Guid?

    ValidFormula

    Only adds the defaults if this formual evaluates to true.

    Declaration
    [EntityProperty(SQLType.NVarChar, true)]
    [EntityDescription("Only adds the defaults if this formual evaluates to true.")]
    string ValidFormula { get; set; }
    Property Value
    Type Description
    string

    WatcherTypeID

    [Key] Links to IWatcherType. The Watcher Type that will be assigned to the new Watcher

    Declaration
    [EntityProperty(SQLType.UniqueIdentifier, false)]
    [RequiredNoDefaultIDValidation]
    [EntityRelationship(EntityID.WatcherType, "ID", SingleJoinType.One, "Watcher Type", "Default Watchers", DeleteWithRelationship = true)]
    [EntityDescription("The watcher type.")]
    [EntityKeyProperty]
    Guid WatcherTypeID { get; set; }
    Property Value
    Type Description
    Guid

    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)

    See Also

    IWatcher
    IWatcherType
    IWatcherNotification
    IWatcherNotificationListener
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.