mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-03 08:10:47 +08:00
准备添加流程接口调用
This commit is contained in:
@@ -115,7 +115,7 @@ namespace Serein.NodeFlow.Model
|
||||
// 执行触发检查是否需要中断
|
||||
if (DebugSetting.IsInterrupt)
|
||||
{
|
||||
context.Env.TriggerInterrupt(Guid, "", InterruptTriggerEventArgs.InterruptTriggerType.Monitor); // 通知运行环境该节点中断了
|
||||
context.Env.FlowControl.TriggerInterrupt(Guid, "", InterruptTriggerEventArgs.InterruptTriggerType.Monitor); // 通知运行环境该节点中断了
|
||||
await DebugSetting.GetInterruptTask.Invoke();
|
||||
SereinEnv.WriteLine(InfoType.INFO, $"[{this.MethodDetails?.MethodName}]中断已取消,开始执行后继分支");
|
||||
if (token.IsCancellationRequested) { return null; }
|
||||
|
||||
@@ -38,17 +38,15 @@ namespace Serein.NodeFlow.Model
|
||||
public partial class SingleFlowCallNode : NodeModelBase
|
||||
{
|
||||
/// <summary>
|
||||
/// 接口节点
|
||||
/// 被调用的节点
|
||||
/// </summary>
|
||||
private IFlowNode targetNode;
|
||||
/// <summary>
|
||||
/// 缓存的方法信息
|
||||
/// </summary>
|
||||
public MethodDetails CacheMethodDetails { get; private set; }
|
||||
/// <summary>
|
||||
/// 接口节点Guid
|
||||
/// </summary>
|
||||
//public string? TargetNodeGuid => targetNode?.Guid;
|
||||
|
||||
|
||||
|
||||
|
||||
public SingleFlowCallNode(IFlowEnvironment environment) : base(environment)
|
||||
|
||||
@@ -96,7 +96,7 @@ namespace Serein.NodeFlow.Model
|
||||
{
|
||||
foreach (var nodeModel in ChildrenNode)
|
||||
{
|
||||
nodeModel.Env.TakeOutNodeToContainer(nodeModel.CanvasDetails.Guid, nodeModel.Guid);
|
||||
nodeModel.Env.FlowEdit.TakeOutNodeToContainer(nodeModel.CanvasDetails.Guid, nodeModel.Guid);
|
||||
}
|
||||
DataNode = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user