using System; using System.ComponentModel; namespace TeamAAS.FlowEditor.Models { [Serializable] /// /// 节点类型分类 /// 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] /// /// 流程触发类型 /// public enum TriggerType { [Description("主流程触发")] MainFlow = 0, [Description("事件触发")] EventTrigger = 1 } [Serializable] /// /// 节点运行状态 /// public enum NodeRunStatus { [Description("未运行")] NotStarted = 0, [Description("运行中")] Running = 1, [Description("成功")] Success = 2, [Description("失败")] Failed = 3, [Description("跳过")] Skipped = 4, [Description("警告:可跳过的返回类型")] Warning = 5, } [Serializable] /// /// 端口方向 /// public enum PortDirection { Input = 0, Output = 1 } [Serializable] /// /// 端口所在边 /// public enum PortSide { Left = 0, Right = 1, Top = 2, Bottom = 3 } [Serializable] /// /// 端口数据类型 /// public enum PortDataType { Any = 0, Bool = 1, Int = 2, Double = 3, String = 4, Image = 5, Object = 6 } }