mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-03 00:00:49 +08:00
1. 更新了节点入参的条件判断:入参类型为IFlowContext(流程上下文)时禁止创建参数来源连接。
2. [Script]脚本节点移除了“getFlowContext”内置方法,改为自动识别入参名称为“context""flowContext""flow_context",如果是,将自动使用 IFlowContext 类型参数(运行时自动给定) 3. NodeFlow项目中,FlowLibraryService添加了GetType(string)以及TryGetType(string,Type?)方法,用于流程环境搜索外部加载的程序集类型。
This commit is contained in:
@@ -4,15 +4,6 @@ namespace Serein.Script
|
||||
{
|
||||
public sealed class ScriptInvokeContext : IScriptInvokeContext
|
||||
{
|
||||
/// <summary>
|
||||
/// 脚本使用流程上下文
|
||||
/// </summary>
|
||||
/// <param name="flowContext"></param>
|
||||
public ScriptInvokeContext(IFlowContext flowContext)
|
||||
{
|
||||
FlowContext = flowContext;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 不使用流程上下文
|
||||
/// </summary>
|
||||
@@ -20,10 +11,6 @@ namespace Serein.Script
|
||||
{
|
||||
}
|
||||
|
||||
#pragma warning disable CS8766 // 返回类型中引用类型的为 Null 性与隐式实现的成员不匹配(可能是由于为 Null 性特性)。
|
||||
public IFlowContext? FlowContext{ get; }
|
||||
#pragma warning restore CS8766 // 返回类型中引用类型的为 Null 性与隐式实现的成员不匹配(可能是由于为 Null 性特性)。
|
||||
|
||||
/// <summary>
|
||||
/// 定义的变量
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user