流程返回值改为FlowResult,记录节点信息、上下文信息,为以后的流程调用回溯做准备

This commit is contained in:
fengjiayi
2025-03-21 18:26:01 +08:00
parent 9941f24c5d
commit f99aff3c2c
30 changed files with 916 additions and 752 deletions

View File

@@ -26,7 +26,7 @@ namespace Serein.Workbench.Node.ViewModel
{
var context = new DynamicContext(NodeModel.Env);
var cts = new CancellationTokenSource();
await NodeModel.ExecutingAsync(context, cts.Token);
var result = await NodeModel.ExecutingAsync(context, cts.Token);
cts?.Dispose();
if (context.NextOrientation == ConnectionInvokeType.IsSucceed
&& NodeModel.Adapter.GetUserControl() is UserControl userControl)