| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- 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<string>, 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; }
- /// <summary>
- /// 输入
- /// </summary>
- public IEnumerable<IEnumerable<WorkflowFormData>> Inputs { get; set; }
- /// <summary>
- /// 流程节点
- /// </summary>
- public IEnumerable<WorkflowNode> Nodes { get; set; }
- public WorkflowDefinitionInfo(string id, string title, int version, IEnumerable<IEnumerable<WorkflowFormData>> inputs, IEnumerable<WorkflowNode> 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;
- }
- }
|