mirror of
https://gitee.com/langsisi_admin/serein-flow
synced 2026-03-15 22:16:34 +08:00
尝试分离NodeModel与依赖包
This commit is contained in:
@@ -1,8 +1,4 @@
|
||||
using Serein.Flow;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace Serein.Flow.NodeModel
|
||||
namespace Serein.Flow.NodeModel
|
||||
{
|
||||
|
||||
/// <summary>
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
using Serein.Flow.Tool;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Diagnostics;
|
||||
|
||||
|
||||
namespace Serein.Flow.NodeModel
|
||||
{
|
||||
|
||||
@@ -59,7 +55,7 @@ namespace Serein.Flow.NodeModel
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
Debug.Write(ex.Message);
|
||||
Console.WriteLine(ex.Message);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -1,10 +1,4 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Serein.Flow.NodeModel
|
||||
namespace Serein.Flow.NodeModel
|
||||
{
|
||||
public class CompositeLoopNode : NodeBase
|
||||
{
|
||||
|
||||
@@ -1,12 +1,5 @@
|
||||
using Serein.Flow;
|
||||
using Newtonsoft.Json;
|
||||
using Serein.Flow.Tool;
|
||||
using Newtonsoft.Json;
|
||||
using SqlSugar;
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
using System.Threading;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace Serein.Flow.NodeModel
|
||||
{
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
using Serein.Flow.Tool;
|
||||
using System.Diagnostics;
|
||||
|
||||
namespace Serein.Flow.NodeModel
|
||||
namespace Serein.Flow.NodeModel
|
||||
{
|
||||
/// <summary>
|
||||
/// 单动作节点(用于动作控件)
|
||||
|
||||
@@ -1,8 +1,4 @@
|
||||
using Serein.Flow.SerinExpression;
|
||||
using Serein.Flow.Tool;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Linq.Expressions;
|
||||
|
||||
namespace Serein.Flow.NodeModel
|
||||
{
|
||||
|
||||
@@ -1,9 +1,4 @@
|
||||
using Serein.Flow.SerinExpression;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Serein.Flow.NodeModel
|
||||
{
|
||||
|
||||
@@ -1,40 +1,12 @@
|
||||
using Serein.Flow.Tool;
|
||||
|
||||
namespace Serein.Flow.NodeModel
|
||||
namespace Serein.Flow.NodeModel
|
||||
{
|
||||
|
||||
public class SingleFlipflopNode : NodeBase
|
||||
{
|
||||
//public override void Execute(DynamicContext context)
|
||||
//{
|
||||
// throw new NotImplementedException("无法以非await/async的形式调用触发器");
|
||||
//}
|
||||
public override object Execute(DynamicContext context)
|
||||
{
|
||||
throw new NotImplementedException("无法以非await/async的形式调用触发器");
|
||||
}
|
||||
|
||||
//public virtual async Task ExecuteAsync(DynamicContext context, Action NextTask = null)
|
||||
//{
|
||||
// if (DelegateCache.GlobalDicDelegates.TryGetValue(MethodDetails.MethodName, out Delegate? del))
|
||||
// {
|
||||
// object?[]? parameters = GetParameters(context, MethodDetails);
|
||||
|
||||
// // 根据 ExplicitDatas.Length 判断委托类型
|
||||
// var func = (Func<object, object[], Task<FlipflopContext>>)del;
|
||||
|
||||
// // 调用委托并获取结果
|
||||
// FlipflopContext flipflopContext = await func.Invoke(MethodDetails.ActingInstance, parameters);
|
||||
|
||||
// if (flipflopContext != null)
|
||||
// {
|
||||
// if (flipflopContext.State == FfState.Cancel)
|
||||
// {
|
||||
// throw new Exception("取消此异步");
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// CurrentState = flipflopContext.State == FfState.Succeed;
|
||||
// context.SetFlowData(flipflopContext.Data);
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user