mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-03 00:00:49 +08:00
48 lines
1.4 KiB
C#
48 lines
1.4 KiB
C#
using Serein.Library.Api;
|
|
using Serein.Library;
|
|
using System.Security.AccessControl;
|
|
|
|
namespace Serein.NodeFlow.Model
|
|
{
|
|
/// <summary>
|
|
/// 单动作节点(用于动作控件)
|
|
/// </summary>
|
|
public class SingleActionNode : NodeModelBase
|
|
{
|
|
public SingleActionNode(IFlowEnvironment environment):base(environment)
|
|
{
|
|
|
|
}
|
|
|
|
/// <summary>
|
|
/// 加载完成后调用的方法
|
|
/// </summary>
|
|
public override void OnCreating()
|
|
{
|
|
// Console.WriteLine("SingleActionNode 暂未实现 OnLoading");
|
|
}
|
|
|
|
public override ParameterData[] GetParameterdatas()
|
|
{
|
|
if (base.MethodDetails.ParameterDetailss.Length > 0)
|
|
{
|
|
return MethodDetails.ParameterDetailss
|
|
.Select(it => new ParameterData
|
|
{
|
|
SourceNodeGuid = it.ArgDataSourceNodeGuid,
|
|
SourceType = it.ArgDataSourceType.ToString(),
|
|
State = it.IsExplicitData,
|
|
Value = it.DataValue,
|
|
})
|
|
.ToArray();
|
|
}
|
|
else
|
|
{
|
|
return [];
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
}
|