Class ThreadAgentsOfflineServiceDelegate

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

@Component("threadAgentsOfflineServiceDelegate") public class ThreadAgentsOfflineServiceDelegate extends Object implements org.flowable.engine.delegate.JavaDelegate
坐席离线处理服务 处理所有坐席离线的情况 - 发送离线通知给访客 - 提供替代联系方式 - 结束会话
  • Constructor Details

    • ThreadAgentsOfflineServiceDelegate

      public ThreadAgentsOfflineServiceDelegate()
  • Method Details

    • execute

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

      private void sendOfflineNotification(org.flowable.engine.delegate.DelegateExecution execution)
      发送离线通知给访客
    • provideAlternativeContactMethods

      private void provideAlternativeContactMethods(org.flowable.engine.delegate.DelegateExecution execution)
      提供替代联系方式
    • recordThreadEnd

      private void recordThreadEnd(org.flowable.engine.delegate.DelegateExecution execution)
      记录会话结束
    • safeSetVariable

      private void safeSetVariable(org.flowable.engine.delegate.DelegateExecution execution, String variableName, Object variableValue)
      安全地设置流程变量,避免流程已结束时引发外键约束异常