WorkflowDefinitionInfo.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using Abp.Domain.Entities;
  2. using Abp.Domain.Entities.Auditing;
  3. using System.Collections.Generic;
  4. using System.ComponentModel.DataAnnotations.Schema;
  5. namespace VberZero.Workflow.DesignInfo
  6. {
  7. [Table("Sys_WorkflowDefinitions")]
  8. public class WorkflowDefinitionInfo : FullAuditedEntity<string>, IMayHaveTenant
  9. {
  10. public int? TenantId { get; set; }
  11. public string Title { get; set; }
  12. public int Version { get; set; }
  13. public string Description { get; set; }
  14. public string Icon { get; set; }
  15. public string Color { get; set; }
  16. public string Group { get; set; }
  17. /// <summary>
  18. /// 输入
  19. /// </summary>
  20. public IEnumerable<IEnumerable<WorkflowFormData>> Inputs { get; set; }
  21. /// <summary>
  22. /// 流程节点
  23. /// </summary>
  24. public IEnumerable<WorkflowNode> Nodes { get; set; }
  25. public WorkflowDefinitionInfo(string id, string title, int version, IEnumerable<IEnumerable<WorkflowFormData>> inputs, IEnumerable<WorkflowNode> nodes, int? tenantId = null)
  26. {
  27. Id = id;
  28. Title = title;
  29. Version = version;
  30. Inputs = inputs;
  31. Nodes = nodes;
  32. TenantId = tenantId;
  33. }
  34. }
  35. public class WorkflowDefinitionConst
  36. {
  37. public const int IdMaxLength = 50;
  38. public const int TitleMaxLength = 256;
  39. public const int GroupMaxLength = 100;
  40. public const int IconMaxLength = 50;
  41. public const int ColorMaxLength = 50;
  42. }
  43. }