mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-13 13:09:25 +08:00
1. 脚本转c#代码功能,支持了[Flipflop]触发器节点
2. 修复了Script.StringNode转C#中存在多余的转义符的问题 3. 为IFlowControl添加了Task StratNodeAsync(string)的接口,用于在代码生成场景中的流程控制 4. 调整了关于Lightweight运行环境的文件位置
This commit is contained in:
35
Library/FlowNode/Env/IFlowCallTree.cs
Normal file
35
Library/FlowNode/Env/IFlowCallTree.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Serein.Library
|
||||
{
|
||||
/// <summary>
|
||||
/// 流程调用树接口,提供获取CallNode的方法。
|
||||
/// </summary>
|
||||
public interface IFlowCallTree
|
||||
{
|
||||
/// <summary>
|
||||
/// 起始节点
|
||||
/// </summary>
|
||||
List<CallNode> StartNodes { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 全局触发器节点列表
|
||||
/// </summary>
|
||||
List<CallNode> GlobalFlipflopNodes { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 初始化并启动流程调用树,异步执行。
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
Task InitAndStartAsync(CancellationToken token);
|
||||
|
||||
/// <summary>
|
||||
/// 获取指定Key的CallNode,如果不存在则返回null。
|
||||
/// </summary>
|
||||
/// <param name="key"></param>
|
||||
/// <returns></returns>
|
||||
CallNode Get(string key);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user