mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-03 00:00:49 +08:00
准备添加流程接口调用
This commit is contained in:
@@ -32,10 +32,11 @@ namespace Serein.Library
|
||||
/// <param name="context"></param>
|
||||
public FlowResult(IFlowNode nodeModel, IDynamicContext context, object value)
|
||||
{
|
||||
this.NodeGuid = nodeModel.Guid;
|
||||
this.Source = nodeModel;
|
||||
this.ContextGuid = context.Guid;
|
||||
this.Value = value;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 空返回值
|
||||
/// </summary>
|
||||
@@ -43,10 +44,11 @@ namespace Serein.Library
|
||||
/// <param name="context"></param>
|
||||
public FlowResult(IFlowNode nodeModel, IDynamicContext context)
|
||||
{
|
||||
this.NodeGuid = nodeModel.Guid;
|
||||
this.Source = nodeModel;
|
||||
this.ContextGuid = context.Guid;
|
||||
this.Value = Unit.Default;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 尝试获取值
|
||||
/// </summary>
|
||||
@@ -74,7 +76,7 @@ namespace Serein.Library
|
||||
/// <summary>
|
||||
/// 来源节点Guid
|
||||
/// </summary>
|
||||
public string NodeGuid { get; }
|
||||
public IFlowNode Source{ get; }
|
||||
/// <summary>
|
||||
/// 来源上下文Guid
|
||||
/// </summary>
|
||||
@@ -83,6 +85,7 @@ namespace Serein.Library
|
||||
/// 数据值
|
||||
/// </summary>
|
||||
public object Value { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// 生成时间
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user