|
@@ -1,4 +1,5 @@
|
|
|
using Hotline.FlowEngine.Notifies;
|
|
|
+using Hotline.KnowledgeBase;
|
|
|
using Hotline.Orders;
|
|
|
using Hotline.Settings;
|
|
|
using MediatR;
|
|
@@ -9,10 +10,12 @@ namespace Hotline.Application.Handlers.FlowEngine;
|
|
|
public class NextStepHandler : INotificationHandler<NextStepNotify>
|
|
|
{
|
|
|
private readonly IOrderRepository _orderRepository;
|
|
|
+ private readonly IKnowledgeRepository _knowledgeRepository;
|
|
|
|
|
|
- public NextStepHandler(IOrderRepository orderRepository)
|
|
|
+ public NextStepHandler(IOrderRepository orderRepository, IKnowledgeRepository knowledgeRepository)
|
|
|
{
|
|
|
_orderRepository = orderRepository;
|
|
|
+ _knowledgeRepository = knowledgeRepository;
|
|
|
}
|
|
|
|
|
|
/// <summary>Handles a notification</summary>
|
|
@@ -32,6 +35,15 @@ public class NextStepHandler : INotificationHandler<NextStepNotify>
|
|
|
|
|
|
//todo business logic
|
|
|
break;
|
|
|
+
|
|
|
+ //case WorkflowModuleConsts.KnowledgePublish:
|
|
|
+ // var know = await _knowledgeRepository.GetAsync(d => d.WorkflowId == workflow.Id, cancellationToken);
|
|
|
+ // //todo is null
|
|
|
+ // know.Assign(notification.FlowAssignType, data.Handlers);
|
|
|
+
|
|
|
+ // //todo business logic
|
|
|
+
|
|
|
+ // break;
|
|
|
}
|
|
|
}
|
|
|
}
|