using Abp.Domain.Entities; using Abp.Domain.Entities.Auditing; using System; using System.ComponentModel.DataAnnotations.Schema; using VberZero.Workflow.DesignInfo; using WorkflowCore.Models; namespace VberZero.Workflow.Persistence { [Table("Sys_Wf_Workflows")] public class WorkflowInfo : FullAuditedEntity, IMayHaveTenant { public string WorkflowDefinitionId { get; set; } public WorkflowDefinitionInfo WorkflowDefinitionInfo { get; set; } public int Version { get; set; } public string Description { get; set; } public string Reference { get; set; } public virtual ExecutionPointerCollection ExecutionPointers { get; set; } = new(); public long? NextExecution { get; set; } public string Data { get; set; } public DateTime CreateTime { get; set; } public DateTime? CompleteTime { get; set; } public WorkflowStatus Status { get; set; } public int? TenantId { get; set; } public string CreateUserIdentityName { get; set; } } public class WorkflowConst { public const int WorkflowDefinitionIdMaxLength = WorkflowDefinitionConst.IdMaxLength; public const int DescriptionMaxLength = 500; public const int ReferenceMaxLength = 200; public const int DataMaxLength = int.MaxValue; } }