using Serein.Library;
using Serein.Library.Api;
using Serein.Library.Utils;
using Serein.Library.Utils.SereinExpression;
using System.Reactive;
using System.Reflection.Metadata;
namespace Serein.NodeFlow.Model
{
///
/// Expression Operation - 表达式操作
///
[NodeProperty(ValuePath = NodeValuePath.Node)]
public partial class SingleExpOpNode : NodeModelBase
{
///
/// 表达式
///
[PropertyInfo(IsNotification = true)]
private string _expression;
}
public partial class SingleExpOpNode : NodeModelBase
{
public SingleExpOpNode(IFlowEnvironment environment) : base(environment)
{
}
///
/// 加载完成后调用的方法
///
public override void OnCreating()
{
var pd = new ParameterDetails
{
Index = 0,
Name = nameof(Expression),
DataType = typeof(string),
ExplicitType = typeof(string),
IsExplicitData = false,
DataValue = string.Empty,
ArgDataSourceNodeGuid = string.Empty,
ArgDataSourceType = ConnectionArgSourceType.GetPreviousNodeData,
NodeModel = this,
Convertor = null,
ExplicitTypeName = "Value",
Items = Array.Empty(),
};
this.MethodDetails.ParameterDetailss = new ParameterDetails[] { pd };
}
public override async Task