Class ThreadCompletionDelegate

java.lang.Object
com.bytedesk.ticket.delegate.ThreadCompletionDelegate
All Implemented Interfaces:
org.flowable.engine.delegate.JavaDelegate

@Component("threadCompletionDelegate") public class ThreadCompletionDelegate extends Object implements org.flowable.engine.delegate.JavaDelegate
客服会话完成服务 处理客服会话结束时的总结和归档功能 - 生成会话总结 - 记录会话统计数据 - 归档会话记录
  • Constructor Details

    • ThreadCompletionDelegate

      public ThreadCompletionDelegate()
  • Method Details

    • execute

      public void execute(org.flowable.engine.delegate.DelegateExecution execution)
      Specified by:
      execute in interface org.flowable.engine.delegate.JavaDelegate
    • generateThreadStatistics

      private void generateThreadStatistics(org.flowable.engine.delegate.DelegateExecution execution)
      生成会话统计数据
    • generateThreadSummary

      private void generateThreadSummary(org.flowable.engine.delegate.DelegateExecution execution)
      生成会话总结
    • formatDuration

      private String formatDuration(long seconds)
      格式化时长
    • archiveThread

      private void archiveThread(org.flowable.engine.delegate.DelegateExecution execution)
      归档会话记录