| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- using System;
- using System.ComponentModel;
- namespace TeamAAS.FlowEditor.Models
- {
- [Serializable]
- /// <summary>
- /// 节点类型分类
- /// </summary>
- public enum NodeCategory
- {
- [Description("普通")]
- Normal = 0,
- [Description("判断")]
- Decision = 1,
- [Description("工具块")]
- ToolBlock = 2,
- [Description("循环")]
- ForLoop = 3,
- [Description("组合")]
- Group = 4,
- [Description("结束")]
- End = 5,
- [Description("异常分支")]
- ExceptionBranch = 6
- }
- [Serializable]
- /// <summary>
- /// 流程触发类型
- /// </summary>
- public enum TriggerType
- {
- [Description("主流程触发")]
- MainFlow = 0,
- [Description("事件触发")]
- EventTrigger = 1
- }
- [Serializable]
- /// <summary>
- /// 节点运行状态
- /// </summary>
- public enum NodeRunStatus
- {
- [Description("未运行")]
- NotStarted = 0,
- [Description("运行中")]
- Running = 1,
- [Description("成功")]
- Success = 2,
- [Description("失败")]
- Failed = 3,
- [Description("跳过")]
- Skipped = 4,
- [Description("警告:可跳过的返回类型")]
- Warning = 5,
- }
- [Serializable]
- /// <summary>
- /// 端口方向
- /// </summary>
- public enum PortDirection
- {
- Input = 0,
- Output = 1
- }
- [Serializable]
- /// <summary>
- /// 端口所在边
- /// </summary>
- public enum PortSide
- {
- Left = 0,
- Right = 1,
- Top = 2,
- Bottom = 3
- }
- [Serializable]
- /// <summary>
- /// 端口数据类型
- /// </summary>
- public enum PortDataType
- {
- Any = 0,
- Bool = 1,
- Int = 2,
- Double = 3,
- String = 4,
- Image = 5,
- Object = 6
- }
- }
|