mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-04-08 00:46:34 +08:00
修改了logwindows输出,避免高频输出时卡死。修改了流程运行上下文,使节点具备终止分支运行的能力。
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Serein.Library.Utils;
|
||||
using Serein.Library.Enums;
|
||||
using Serein.Library.Utils;
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
@@ -13,14 +14,35 @@ namespace Serein.Library.Api
|
||||
/// 运行环境,包含IOC容器。
|
||||
/// </summary>
|
||||
IFlowEnvironment Env { get; }
|
||||
|
||||
|
||||
RunState RunState { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 获取节点的数据(当前节点需要获取上一节点数据时,需要从 运行时上一节点 的Guid 通过这个方法进行获取
|
||||
/// </summary>
|
||||
/// <param name="nodeGuid"></param>
|
||||
/// <returns></returns>
|
||||
object GetFlowData(string nodeGuid);
|
||||
|
||||
/// <summary>
|
||||
/// 添加或更新当前节点的数据
|
||||
/// </summary>
|
||||
/// <param name="nodeGuid"></param>
|
||||
/// <param name="flowData"></param>
|
||||
void AddOrUpdate(string nodeGuid, object flowData);
|
||||
|
||||
/// <summary>
|
||||
/// 用以提前结束分支运行
|
||||
/// </summary>
|
||||
void EndCurrentBranch();
|
||||
|
||||
/*/// <summary>
|
||||
/// 定时循环触发
|
||||
/// </summary>
|
||||
/// <param name="callback"></param>
|
||||
/// <param name="time"></param>
|
||||
/// <param name="count"></param>
|
||||
/// <returns></returns>
|
||||
// Task CreateTimingTask(Action callback, int time = 100, int count = -1);
|
||||
}
|
||||
// Task CreateTimingTask(Action callback, int time = 100, int count = -1);*/
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user