Files
serein-flow/NodeFlow/Model/SingleActionNode.cs

48 lines
1.4 KiB
C#
Raw Normal View History

using Serein.Library.Api;
using Serein.Library;
2024-10-27 00:54:10 +08:00
using System.Security.AccessControl;
namespace Serein.NodeFlow.Model
2024-08-06 16:09:46 +08:00
{
/// <summary>
/// 单动作节点(用于动作控件)
/// </summary>
public class SingleActionNode : NodeModelBase
2024-08-06 16:09:46 +08:00
{
public SingleActionNode(IFlowEnvironment environment):base(environment)
{
}
2024-10-28 21:52:45 +08:00
/// <summary>
/// 加载完成后调用的方法
/// </summary>
2024-11-02 16:48:40 +08:00
public override void OnCreating()
2024-10-28 21:52:45 +08:00
{
2024-11-02 16:48:40 +08:00
// Console.WriteLine("SingleActionNode 暂未实现 OnLoading");
2024-10-28 21:52:45 +08:00
}
2024-10-27 00:54:10 +08:00
public override ParameterData[] GetParameterdatas()
{
2024-10-13 19:36:45 +08:00
if (base.MethodDetails.ParameterDetailss.Length > 0)
{
2024-10-13 19:36:45 +08:00
return MethodDetails.ParameterDetailss
2024-10-27 00:54:10 +08:00
.Select(it => new ParameterData
{
2024-10-27 00:54:10 +08:00
SourceNodeGuid = it.ArgDataSourceNodeGuid,
SourceType = it.ArgDataSourceType.ToString(),
State = it.IsExplicitData,
Value = it.DataValue,
})
.ToArray();
}
else
{
return [];
}
}
2024-08-06 16:09:46 +08:00
}
}