Files
serein-flow/Library/Enums/NodeType.cs
2024-10-11 16:46:16 +08:00

67 lines
1.5 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Serein.Library.Enums
{
public enum NodeType
{
/// <summary>
/// 初始化,流程启动时执行(不生成节点)
/// </summary>
Init,
/// <summary>
/// 开始载入,流程启动时执行(不生成节点)
/// </summary>
Loading,
/// <summary>
/// 结束,流程结束时执行(不生成节点)
/// </summary>
Exit,
/// <summary>
/// 触发器返回值必须为Task&lt;IFlipflopContext&lt;TResult&gt;&gt;
/// </summary>
Flipflop,
/// <summary>
/// 条件
/// </summary>
Condition,
/// <summary>
/// 动作
/// </summary>
Action,
}
/// <summary>
/// 生成的节点控件
/// </summary>
public enum NodeControlType
{
None,
/// <summary>
/// 动作节点
/// </summary>
Action,
/// <summary>
/// 触发器节点
/// </summary>
Flipflop,
/// <summary>
/// 表达式操作节点
/// </summary>
ExpOp,
/// <summary>
/// 表达式操作节点
/// </summary>
ExpCondition,
/// <summary>
/// 条件节点区域
/// </summary>
ConditionRegion,
}
}