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

36 lines
970 B
C#
Raw Normal View History

using Serein.Library.Api;
using Serein.Library;
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)
{
}
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
.Select(it => new Parameterdata
{
State = it.IsExplicitData,
Value = it.DataValue,
})
.ToArray();
}
else
{
return [];
}
}
2024-08-06 16:09:46 +08:00
}
}