NodeEnums.cs 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. using System;
  2. using System.ComponentModel;
  3. namespace TeamAAS.FlowEditor.Models
  4. {
  5. [Serializable]
  6. /// <summary>
  7. /// 节点类型分类
  8. /// </summary>
  9. public enum NodeCategory
  10. {
  11. [Description("普通")]
  12. Normal = 0,
  13. [Description("判断")]
  14. Decision = 1,
  15. [Description("工具块")]
  16. ToolBlock = 2,
  17. [Description("循环")]
  18. ForLoop = 3,
  19. [Description("组合")]
  20. Group = 4,
  21. [Description("结束")]
  22. End = 5,
  23. [Description("异常分支")]
  24. ExceptionBranch = 6
  25. }
  26. [Serializable]
  27. /// <summary>
  28. /// 流程触发类型
  29. /// </summary>
  30. public enum TriggerType
  31. {
  32. [Description("主流程触发")]
  33. MainFlow = 0,
  34. [Description("事件触发")]
  35. EventTrigger = 1
  36. }
  37. [Serializable]
  38. /// <summary>
  39. /// 节点运行状态
  40. /// </summary>
  41. public enum NodeRunStatus
  42. {
  43. [Description("未运行")]
  44. NotStarted = 0,
  45. [Description("运行中")]
  46. Running = 1,
  47. [Description("成功")]
  48. Success = 2,
  49. [Description("失败")]
  50. Failed = 3,
  51. [Description("跳过")]
  52. Skipped = 4,
  53. [Description("警告:可跳过的返回类型")]
  54. Warning = 5,
  55. }
  56. [Serializable]
  57. /// <summary>
  58. /// 端口方向
  59. /// </summary>
  60. public enum PortDirection
  61. {
  62. Input = 0,
  63. Output = 1
  64. }
  65. [Serializable]
  66. /// <summary>
  67. /// 端口所在边
  68. /// </summary>
  69. public enum PortSide
  70. {
  71. Left = 0,
  72. Right = 1,
  73. Top = 2,
  74. Bottom = 3
  75. }
  76. [Serializable]
  77. /// <summary>
  78. /// 端口数据类型
  79. /// </summary>
  80. public enum PortDataType
  81. {
  82. Any = 0,
  83. Bool = 1,
  84. Int = 2,
  85. Double = 3,
  86. String = 4,
  87. Image = 5,
  88. Object = 6
  89. }
  90. }