using Abp.Domain.Entities; using Abp.Domain.Entities.Auditing; using System.Collections.Generic; using System.ComponentModel.DataAnnotations.Schema; namespace VberZero.Workflow.DesignInfo { [Table("Sys_WorkflowDefinitions")] public class WorkflowDefinitionInfo : FullAuditedEntity, IMayHaveTenant { public int? TenantId { get; set; } public string Title { get; set; } public int Version { get; set; } public string Description { get; set; } public string Icon { get; set; } public string Color { get; set; } public string Group { get; set; } /// /// 输入 /// public IEnumerable> Inputs { get; set; } /// /// 流程节点 /// public IEnumerable Nodes { get; set; } public WorkflowDefinitionInfo(string id, string title, int version, IEnumerable> inputs, IEnumerable nodes, int? tenantId = null) { Id = id; Title = title; Version = version; Inputs = inputs; Nodes = nodes; TenantId = tenantId; } } public class WorkflowDefinitionConst { public const int IdMaxLength = 50; public const int TitleMaxLength = 256; public const int GroupMaxLength = 100; public const int IconMaxLength = 50; public const int ColorMaxLength = 50; } }