|
@@ -1,6 +1,7 @@
|
|
using Hotline.Application.FlowEngine;
|
|
using Hotline.Application.FlowEngine;
|
|
using Hotline.FlowEngine.Notifications;
|
|
using Hotline.FlowEngine.Notifications;
|
|
using Hotline.FlowEngine.Workflows;
|
|
using Hotline.FlowEngine.Workflows;
|
|
|
|
+using Hotline.KnowledgeBase;
|
|
using Hotline.Orders;
|
|
using Hotline.Orders;
|
|
using Hotline.Settings;
|
|
using Hotline.Settings;
|
|
using Hotline.Share.Dtos.FlowEngine;
|
|
using Hotline.Share.Dtos.FlowEngine;
|
|
@@ -17,12 +18,15 @@ public class NextStepHandler : INotificationHandler<NextStepNotify>
|
|
{
|
|
{
|
|
private readonly IOrderDomainService _orderDomainService;
|
|
private readonly IOrderDomainService _orderDomainService;
|
|
private readonly ILogger<NextStepHandler> _logger;
|
|
private readonly ILogger<NextStepHandler> _logger;
|
|
|
|
+ private readonly IKnowledgeDomainService _knowledgeDomainService;
|
|
|
|
|
|
public NextStepHandler(
|
|
public NextStepHandler(
|
|
IOrderDomainService orderDomainService,
|
|
IOrderDomainService orderDomainService,
|
|
|
|
+ IKnowledgeDomainService knowledgeDomainService,
|
|
ILogger<NextStepHandler> logger)
|
|
ILogger<NextStepHandler> logger)
|
|
{
|
|
{
|
|
_orderDomainService = orderDomainService;
|
|
_orderDomainService = orderDomainService;
|
|
|
|
+ _knowledgeDomainService = knowledgeDomainService;
|
|
_logger = logger;
|
|
_logger = logger;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -45,6 +49,11 @@ public class NextStepHandler : INotificationHandler<NextStepNotify>
|
|
workflow.ExternalId, workflow.CurrentStepTime, workflow.CurrentStepName, workflow.ExpiredTime,
|
|
workflow.ExternalId, workflow.CurrentStepTime, workflow.CurrentStepName, workflow.ExpiredTime,
|
|
cancellationToken);
|
|
cancellationToken);
|
|
break;
|
|
break;
|
|
|
|
+ case WorkflowModuleConsts.KnowledgeAdd:
|
|
|
|
+ case WorkflowModuleConsts.KnowledgeUpdate:
|
|
|
|
+ case WorkflowModuleConsts.KnowledgeDelete:
|
|
|
|
+ await _knowledgeDomainService.UpdateWorkAssign(notification.FlowAssignMode, workflow.ExternalId, cancellationToken);
|
|
|
|
+ break;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|