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
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 |