Interface IItemTask
The system entity for a task, which can be associated with any entity in the system
See https://help.lemonedge.com/help/enterprise-data-tools/workflow/tasks/intro.html for more information
Inherited Members
Namespace: LemonEdge.API.Entities.Workflow
Assembly: LemonEdge.API.dll
Syntax
[EntityDefinition(EntityID.Task, "dbo.LT_ItemTasks", "ItemTask", IsStandingDataEntity = false, LabelColumn = "Title", HelpURL = "help/enterprise-data-tools/workflow/tasks/intro.html")]
[DefaultEntityIcon(ImageType.Pin)]
[EntityIndex(Name = "Tasks", ColumnNames = new string[] { "EntityID" }, IndexOrder = new IndexOrder[] { IndexOrder.Ascending }, IsClustered = false, IsUnique = false)]
public interface IItemTask : IBaseEntityWithPermissions, IHasFolderStructure, IBaseEntity, IEquatable<IBaseEntity>, INotifyPropertyChanged, INotifyPropertyChanging, ICloneableAsync, ICanTrackProperties
Properties
Deadline
A date indicating the date this task should be completed by
Declaration
[EntityProperty(SQLType.DateTimeOffset, true, IsDate = true)]
[EntityDescription("An optional deadline for this task.")]
DateTimeOffset? Deadline { get; set; }
Property Value
Type | Description |
---|---|
DateTimeOffset? |
Description
User friendly description of this task
Declaration
[EntityProperty(SQLType.NVarChar, 500, true)]
[EntityDescription("Description of this task.")]
string Description { get; set; }
Property Value
Type | Description |
---|---|
string |
EntityID
The globally unique id of the entity (of type EntityTypeID) this task is associated with
Declaration
[EntityProperty(SQLType.UniqueIdentifier, true)]
[EntityDescription("The id of the item this task is assigned against.")]
[EntityLinkToAnyParentRelationship("EntityTypeID", SingleJoinType.ZeroToOne, "Tasks", false, null)]
Guid? EntityID { get; set; }
Property Value
Type | Description |
---|---|
Guid? |
EntityTypeID
The type of entity this task is associated with
Declaration
[EntityProperty(SQLType.UniqueIdentifier, true, IsEntityTypeLink = true)]
[EntityDescription("The optional item this task is assigned against.")]
Guid? EntityTypeID { get; set; }
Property Value
Type | Description |
---|---|
Guid? |
Importance
Indicates the importance of this task. High tasks are always shown first by default.
Declaration
[EntityProperty(SQLType.SmallInt, false)]
[EntityDescription("Indicates the importance of this task. High tasks are always shown first by default.")]
ItemImportance Importance { get; set; }
Property Value
Type | Description |
---|---|
ItemImportance |
Notes
Extra multi-line notes about this task
Declaration
[EntityProperty(SQLType.NVarChar, true)]
[EntityDescription("Extra notes about this task.")]
string Notes { get; set; }
Property Value
Type | Description |
---|---|
string |
ParentTaskID
Links to IItemTask. The parent task
Declaration
[EntityProperty(SQLType.UniqueIdentifier, true)]
[EntityRelationship(EntityID.Task, "ID", SingleJoinType.ZeroToOne, "Parent", "Child Tasks", DeleteWithRelationship = true, PartOfParentSet = true, LinkToItemInSet = true, InheritPermissions = false)]
Guid? ParentTaskID { get; set; }
Property Value
Type | Description |
---|---|
Guid? |
PercentComplete
A percentage indicating the the completeness of this task
Declaration
[EntityProperty(SQLType.Decimal, 10, 7, false)]
[EntityDescription("Indicates the percentage of this task that is complete.")]
decimal PercentComplete { get; set; }
Property Value
Type | Description |
---|---|
decimal |
Reference
[Key] A system generated unique number for this task
Declaration
[EntityProperty(SQLType.Int, false, "0")]
[EntityDescription("Holds the unique reference for this task.")]
[EntityKeyProperty]
[EntityAutoIncrementColumn(1)]
int Reference { get; set; }
Property Value
Type | Description |
---|---|
int |
Status
A flag indicating the current status of this task
Declaration
[EntityProperty(SQLType.SmallInt, false)]
[EntityDescription("The current status of this task.")]
TaskStatus Status { get; set; }
Property Value
Type | Description |
---|---|
TaskStatus |
TaskTypeID
Links to IItemTaskType. The type of this task
Declaration
[EntityProperty(SQLType.UniqueIdentifier, true)]
[EntityRelationship(EntityID.TaskType, "ID", SingleJoinType.ZeroToOne, "Type", "Tasks", DeleteWithRelationship = true, PartOfParentSet = true, LinkToItemInSet = true, InheritPermissions = false)]
Guid? TaskTypeID { get; set; }
Property Value
Type | Description |
---|---|
Guid? |
Title
User friendly title of this task
Declaration
[EntityProperty(SQLType.NVarChar, 500, false)]
[EntityDescription("Title of this task.")]
string Title { get; set; }
Property Value
Type | Description |
---|---|
string |