修复了BUG:流程上下文无法入参

This commit is contained in:
fengjiayi
2025-02-28 11:03:10 +08:00
parent dfd898a91c
commit 8f8644f595
5 changed files with 9 additions and 4 deletions

View File

@@ -190,12 +190,12 @@ namespace Serein.Library
var env = nodeModel.Env;
#region
// 返回运行环境
if (DataType == typeof(IFlowEnvironment))
if (typeof(IFlowEnvironment).IsAssignableFrom(DataType))
{
return env;
}
// 返回流程上下文
if (DataType == typeof(IDynamicContext))
if (typeof(IDynamicContext).IsAssignableFrom(DataType))
{
return context;
}