wuxw
2020-02-08 a2a27d09de45b6eb671bb50a25b6eb6d01902beb
java110-event/src/main/java/com/java110/event/center/DataFlowEventPublishing.java
@@ -1,10 +1,11 @@
package com.java110.event.center;
import com.java110.common.constant.CommonConstant;
import com.java110.common.exception.BusinessException;
import com.java110.common.factory.ApplicationContextFactory;
import com.java110.common.log.LoggerEngine;
import com.java110.common.util.Assert;
import com.alibaba.fastjson.JSONObject;
import com.java110.utils.constant.CommonConstant;
import com.java110.utils.exception.BusinessException;
import com.java110.utils.factory.ApplicationContextFactory;
import com.java110.utils.log.LoggerEngine;
import com.java110.utils.util.Assert;
import com.java110.core.context.IOrderDataFlowContext;
import com.java110.entity.order.Business;
import com.java110.event.center.event.*;
@@ -195,7 +196,7 @@
            listener.soService(event);
        }catch (Exception e){
            LoggerEngine.error("发布侦听失败",e);
            throw new RuntimeException("发布侦听失败,"+listener+ event + e);
            throw new RuntimeException(e.getMessage());
        }
    }
@@ -252,6 +253,16 @@
        multicastEvent(new InvokeBusinessSystemEvent("",dataFlow));
    }
    /**
     * 调用业务系统成功后事件
     * @param dataFlow
     * @param business 成功的事件业务数据封装对象
     */
    public static void invokeBusinessBSuccess(IOrderDataFlowContext dataFlow, Business business, JSONObject businessResponseData){
        multicastEvent(new InvokeBusinessBSuccessEvent("",dataFlow,business,businessResponseData));
    }
    /**
     * 调用业务系统成功后事件
     * @param dataFlow