Exemplo n.º 1
0
 public object Invoke(object instance, object[] inputs, out object[] outputs)
 {
     if (inputs != null && inputs.Length == 1 && inputs[0] != null && inputs[0] is ESBMessage)
     {
         ESBMessage msg = (ESBMessage)inputs[0];
         string     key = msg.MessageID + "[|]" + msg.SubscriberID;
         var        obj = GetFromCache(key);
         if (obj != null && obj.ToString() == "esb")
         {
             Logger.WriteLog("Find the duplicated msg task and ignore it: [MessageID]:[" + msg.MessageID + "], [SubscriberID]:[" + msg.SubscriberID + "].", "Duplicated_ESB_MessageTask");
             outputs = new object[0];
             return(null);
         }
         else
         {
             var obj1 = m_Core.Invoke(instance, inputs, out outputs);
             try
             {
                 CacheFactory.GetInstance(GetCacheName()).Set(key, "esb", DateTime.Now.AddMinutes(10));
             }
             catch (Exception ex)
             {
                 ExceptionHelper.HandleException(ex);
             }
             return(obj1);
         }
     }
     else
     {
         return(m_Core.Invoke(instance, inputs, out outputs));
     }
 }
Exemplo n.º 2
0
        public void Process(ESBMessage message)
        {
            if (message == null)
            {
                return;
            }
            T msg = message.GetData <T>();

            if (msg == null)
            {
                return;
            }
            if (!Check(msg))
            {
                return;
            }
            if (NeedProcess(msg) == false)
            {
                return;
            }

            Task task = Convert(message.MessageID, message.Subject, msg);

            Save(task);
        }
Exemplo n.º 3
0
        public void Process(ESBMessage message)
        {
            if (message == null)
            {
                return;
            }
            SOIncomeSplitedMessage data = message.GetData <SOIncomeSplitedMessage>();

            if (data == null)
            {
                return;
            }
            if (data.MasterSOIncomeSysNo > 0)
            {
                CompleteTask(ConvertToTask(data.MasterSOIncomeSysNo, "拆分主单-完成主单确认收款单待办事项"
                                           , data.CurrentUserSysNo));
            }
            if (data.SubSOIncomeSysNoList != null && data.SubSOIncomeSysNoList.Count > 0)
            {
                for (int i = 0; i < data.SubSOIncomeSysNoList.Count && data.SubSOIncomeSysNoList[i] > 0; i++)
                {
                    NewTask(ConvertToTask(data.SubSOIncomeSysNoList[i], "拆分主单-创建子单确认收款单待办事项"
                                          , data.CurrentUserSysNo));
                }
            }
        }
Exemplo n.º 4
0
        private void TweetStatus(ESBMessage message)
        {
            try
            {
                string status   = message.ToString();
                var    postBody = "status=" + Uri.EscapeDataString(status);
                RaiseAdapterInfo(ErrorLevel.Info, status);

                using (HMACSHA1 hasher = new HMACSHA1(ASCIIEncoding.ASCII.GetBytes(string.Format("{0}&{1}", Uri.EscapeDataString(APISecret), Uri.EscapeDataString(AccessTokenSecret)))))
                {
                    string   _oauthNonce     = Convert.ToBase64String(new ASCIIEncoding().GetBytes(DateTime.Now.Ticks.ToString()));
                    TimeSpan _timeSpan       = DateTime.UtcNow - new DateTime(1970, 1, 1, 0, 0, 0, 0, DateTimeKind.Utc);
                    string   _oauthTimestamp = Convert.ToInt64(_timeSpan.TotalSeconds).ToString();

                    string baseString = string.Format("oauth_consumer_key={0}&oauth_nonce={1}&oauth_signature_method={2}&oauth_timestamp={3}&oauth_token={4}&oauth_version={5}&status={6}",
                                                      APIKey, _oauthNonce, _OAuthSignatureMethod, _oauthTimestamp, AccessToken, _OAuthVersion, Uri.EscapeDataString(status));

                    string _oauthsignature = Convert.ToBase64String(hasher.ComputeHash(ASCIIEncoding.ASCII.GetBytes(string.Concat("POST&", Uri.EscapeDataString(RequestURI), "&", Uri.EscapeDataString(baseString)))));

                    string _authenticationHeader = string.Format("OAuth oauth_consumer_key=\"{0}\", oauth_nonce=\"{1}\", oauth_signature=\"{2}\", oauth_signature_method=\"{3}\", oauth_timestamp=\"{4}\", oauth_token=\"{5}\", oauth_version=\"{6}\"",
                                                                 Uri.EscapeDataString(APIKey), Uri.EscapeDataString(_oauthNonce), Uri.EscapeDataString(_oauthsignature), Uri.EscapeDataString(_OAuthSignatureMethod), Uri.EscapeDataString(_oauthTimestamp), Uri.EscapeDataString(AccessToken), Uri.EscapeDataString(_OAuthVersion));

                    ServicePointManager.Expect100Continue = false;
                    HttpWebRequest request = (HttpWebRequest)WebRequest.Create(RequestURI);
                    request.Headers.Add("Authorization", _authenticationHeader);
                    request.Method      = "POST";
                    request.ContentType = "application/x-www-form-urlencoded";
                    using (Stream stream = request.GetRequestStream())
                    {
                        byte[] content = ASCIIEncoding.ASCII.GetBytes(postBody);
                        stream.Write(content, 0, content.Length);
                        WebResponse response = request.GetResponse();
                        using (StreamReader reader = new StreamReader(response.GetResponseStream()))
                        {
                            string result = reader.ReadToEnd();
                        }
                        response.Close();
                    }
                }
            }
            catch (WebException ex)
            {
                WebResponse response = ex.Response;
                using (StreamReader reader = new StreamReader(response.GetResponseStream()))
                {
                    string result = reader.ReadToEnd();
                }
                response.Close();
                RaiseAdapterError(ErrorLevel.Error, "Tweet Status Failed", ex);
            }
            catch (Exception ex)
            {
                RaiseAdapterError(ErrorLevel.Error, "Unknown Error", ex);
            }
            finally
            {
            }
        }
Exemplo n.º 5
0
        public void DoESBMessage(ESBMessage msg)
        {
            List <IESBMessageProcessor> processorList = WPMessageProcessorFactory.CreateProcessorList(msg);

            if (processorList != null && processorList.Count > 0)
            {
                foreach (IESBMessageProcessor processor in processorList)
                {
                    processor.Process(msg);
                }
            }
        }
Exemplo n.º 6
0
        private void PublishMessageFromSource()
        {
            ESBMessage message = null;

            try
            {
                sp.PortName    = COMPort;
                sp.BaudRate    = System.Convert.ToInt32(BaudRate);
                sp.DiscardNull = true;
                sp.StopBits    = StopBits.One;
                sp.Parity      = Parity.None;

                try
                {
                    if (sp.IsOpen)
                    {
                        sp.Close();
                    }
                    sp.Open();
                }
                catch (Exception ex)
                {
                    sp.Close();

                    message = CreateEsbMessage(ex.Message, MessageProperties, MetadataPrefix, PublishTopic);
                    PublishEsbMessage(message);
                }



                sp.DataReceived += serialport_DataReceived;
            }
            catch (Exception ex)
            {
                sp.Close();
                string msg           = string.Format(CultureInfo.InvariantCulture, "The adapter endpoint encountered an error. {0}", ex.Message);
                String failureDetail = Helper.GetExceptionMessage(Configuration, msg, base.Name, AdapterName, base.PartyId, message, ex);

                // try to audit the message
                if (AuditOnFailurePublish && MessageAuditService != null)
                {
                    MessageAuditService.AuditMessage(message, ex, base.PartyId, failureDetail);
                }

                throw new Exception(failureDetail);
            }
        }
Exemplo n.º 7
0
        void serialport_DataReceived(object sender, SerialDataReceivedEventArgs e)
        {
            ESBMessage message = null;

            try
            {
                if (!sp.IsOpen)
                {
                    sp.Open();
                }
                msg     = sp.ReadExisting();
                message = CreateEsbMessage(msg, MessageProperties, MetadataPrefix, PublishTopic);
                PublishEsbMessage(message);
            }
            catch (Exception ex)
            {
                message = CreateEsbMessage(ex.Message, MessageProperties, MetadataPrefix, PublishTopic);
                PublishEsbMessage(message);
            }
        }
Exemplo n.º 8
0
        public void Process(ESBMessage message)
        {
            if (message == null)
            {
                return;
            }
            SOAuditedMessage data = message.GetData <SOAuditedMessage>();

            if (data == null)
            {
                return;
            }
            ECCentral.BizEntity.SO.SOInfo soInfo = ObjectFactory <ISOBizInteract> .Instance.GetSOInfo(data.SOSysNo);

            if (soInfo == null)
            {
                return;
            }

            new SOAudited_CreateOutStockTask(soInfo).Process(message);
            new SOAudited_CompleteAuditTask(soInfo).Process(message);
        }
Exemplo n.º 9
0
 /// <summary>
 /// Called from the base class's SendToEndpoint().  This be called by the Neuron ESB runtime for Subscription mode adapters
 ///
 /// </summary>
 /// <param name="message">ESB Message handed to adapter from runtime</param>
 /// <param name="tx">Deprecated Property - This is no longer used and IS ALWAYS NULL</param>
 private void SendToDataSource(ESBMessage message, CommittableTransaction tx)
 {
     RaiseAdapterInfo(ErrorLevel.Verbose, "Received Message. MessageId " + message.Header.MessageId + " Topic " + message.Header.Topic);
 }
Exemplo n.º 10
0
 public override void SendToEndpoint(ESBMessage message, CommittableTransaction tx)
 {
     // call user defined method subscribing to message received from the bus and sending out to some system
     SendToDataSource(message, tx);
 }
Exemplo n.º 11
0
 public void DoMessage(ESBMessage msg)
 {
     ObjectFactory <WPMessageAppService> .Instance.DoESBMessage(msg);
 }
Exemplo n.º 12
0
 public void DoESBMessage(ESBMessage msg)
 {
     WPMessageProcessor.DoESBMessage(msg);
 }
Exemplo n.º 13
0
        public static List <IESBMessageProcessor> CreateProcessorList(ESBMessage msg)
        {
            string subject = msg.Subject;

            if (String.IsNullOrWhiteSpace(subject))
            {
                return(new List <IESBMessageProcessor>(0));
            }

            // subject 转为大写进行比较
            subject = subject.Trim().ToUpper();
            List <IESBMessageProcessor> processorList = new List <IESBMessageProcessor>(2);

            //Subject 转为大写后进行比较
            switch (subject)
            {
                #region SO
            //case "ECC_SO_FPCHECKED":
            //    processorList.Add(new SOFPChecked_CreateConfirmTask());
            //    break;
            //case "ECC_SO_CONFIRMED":
            //    processorList.Add(new SOConfirmed_CompleteConfirmTask());
            //    break;
            //case "ECC_SO_SPLIT":
            //    processorList.Add(new SOSplit_CreateAuditTask());
            //    break;
            case "ECC_SO_AUDITED":     // 订单审核Processor;
                processorList.Add(new SOAuditedMessageProcessor());
                break;

            case "ECC_SO_COMPLETED":
                break;

            case "ECC_SO_OUTSTOCKED":
                processorList.Add(new SOOutStock_CompleteOutStockTask());
                break;

            //case "ECC_SOCUSTOMERABANDONREQUEST_CREATED":
            //    processorList.Add(new SOCreatedCustomerAbandonRequest_CreateAbandonRequestTask());
            //    break;
            //case "ECC_SOCUSTOMERABANDONREQUEST_CANCELED":
            //    processorList.Add(new SOCanceledCustomerAbandonRequest_CompleteAbandonRequestTask());
            //    break;
            //case "ECC_SOCUSTOMERABANDONREQUEST_COMPLETED":
            //    processorList.Add(new SOCompletedCustomerAbandonRequest_CompleteAbandonRequestTask());
            //    break;
            case "ECC_SO_VOIDED":
                processorList.Add(new SOAbandonedMessageProcessor());
                break;


                #endregion

                #region MKT
            case "ECC_COUPON_SUBMITED":
                processorList.Add(new CouponSubmitMessageCreator());
                break;

            case "ECC_COUPON_AUDITED":
                processorList.Add(new CouponAuditMessageCompleter());
                break;

            case "ECC_COUPON_AUDITCANCELED":
                processorList.Add(new CouponAuditCancelMessageCompleter());
                break;

            case "ECC_COUPON_AUDITREJECTED":
                processorList.Add(new CouponAuditRejectMessageCompleter());
                break;

            case "ECC_COUPON_VOIDED":
                processorList.Add(new CouponVoidMessageCompleter());
                break;

            case "ECC_SALEGIFT_SUBMITED":
                processorList.Add(new SaleGiftSubmitMessageCreator());
                break;

            case "ECC_SALEGIFT_AUDITED":
                processorList.Add(new SaleGiftAuditMessageCompleter());
                break;

            case "ECC_SALEGIFT_AUDITCANCELED":
                processorList.Add(new SaleGiftAuditCancelMessageCompleter());
                break;

            case "ECC_SALEGIFT_AUDITREJECTED":
                processorList.Add(new SaleGiftAuditRejectMessageCompleter());
                break;

            case "ECC_SALEGIFT_VOIDED":
                processorList.Add(new SaleGiftVoidMessageCompleter());
                break;

            case "ECC_GROUPBUY_CREATED":
                processorList.Add(new GroupBuySaveMessageCreator());
                break;

            case "ECC_GROUPBUY_UPDATED":
                processorList.Add(new GroupBuyUpdateMessageCreator());
                break;

            case "ECC_GROUPBUY_AUDITED":
                processorList.Add(new GroupBuyAuditMessageCompleter());
                break;

            case "ECC_GROUPBUY_VOIDED":
                processorList.Add(new GroupBuyVoidMessageCompleter());
                break;

            case "ECC_COMBOSALE_SUBMITED":
                processorList.Add(new ComboSaleSubmitMessageCreator());
                break;

            case "ECC_COMBOSALE_AUDITED":
                processorList.Add(new ComboSaleAuditMessageCompleter());
                break;

            case "ECC_COMBOSALE_AUDITREJECTED":
                processorList.Add(new ComboSaleAuditRefuseMessageCompleter());
                break;

            case "ECC_COMBOSALE_ACTIVED":
                processorList.Add(new ComboSaleActiveMessageCompleter());
                break;

            case "ECC_COUNTDOWN_SUBMITED":
                processorList.Add(new CountDownSubmitMessageCreator());
                break;

            case "ECC_COUNTDOWN_AUDITED":
                processorList.Add(new CountDownAuditMessageCompleter());
                break;

            case "ECC_COUNTDOWN_AUDITREJECTED":
                processorList.Add(new CountDownAuditRejectMessageCompleter());
                break;

            case "ECC_PRODUCTREVIEW_CREATED":
                processorList.Add(new ProductReviewCreatedMessageCreator());
                break;

            case "ECC_PRODUCTREVIEW_AUDITED":
                processorList.Add(new ProductReviewAuditMessageCompleter());
                break;

            case "ECC_PRODUCTREVIEW_VOIDED":
                processorList.Add(new ProductReviewVoidMessageCompleter());
                break;

            case "ECC_PRODUCTREVIEWREPLY_CREATED":
                processorList.Add(new ProductReviewReplyCreatedMessageCreator());
                break;

            case "ECC_PRODUCTREVIEWREPLY_AUDITED":
                processorList.Add(new ProductReviewReplyAuditMessageCompleter());
                break;

            case "ECC_PRODUCTREVIEWREPLY_VOIDED":
                processorList.Add(new ProductReviewReplyVoidMessageCompleter());
                break;



            case "ECC_PRODUCTCONSULT_CREATED":
                processorList.Add(new ConsultCreateMessageCompleter());
                break;

            case "ECC_PRODUCTCONSULTREPLY_CREATED":
                processorList.Add(new ConsultReplyCreateMessageCompleter());
                break;



            case "ECC_CONSULT_AUDITED":
                processorList.Add(new ConsultAuditMessageCompleter());
                break;

            case "ECC_CONSULT_VOIDED":
                processorList.Add(new ConsultVoidMessageCompleter());
                break;

            case "ECC_CONSULTREPLY_AUDITREJECTED":
                processorList.Add(new ConsultReplyAuditRefuseMessageCompleter());
                break;

            case "ECC_CONSULTREPLY_AUDITED":
                processorList.Add(new ConsultReplyAuditMessageCompleter());
                break;

            case "ECC_CONSULTREPLY_VOIDED":
                processorList.Add(new ConsultReplyVoidMessageCompleter());
                break;

                #endregion

                #region Invoice
            case "ECC_NETPAY_CREATED":
                processorList.Add(new CreateNetpay_CreateAuditTask());
                break;

            case "ECC_NETPAY_AUDITED":
                processorList.Add(new NetpayAudited_CompleteAuditTask());
                processorList.Add(new NetpayAudited_CreateSOAuditTask());
                processorList.Add(new NetpayAudited_CreateAssignCustomerConsultTask());
                break;

            case "ECC_NETPAY_VOIDED":
                processorList.Add(new NetpayAbandoned_CompleteAuditTask());
                break;

                #region 退款审核
            case "ECC_REFUNDAUDIT_ACCOUNTANTAUDITCREATED":
                processorList.Add(new CreateRefundAccountantAudit_CreateTask());
                break;

            case "ECC_REFUNDAUDIT_CASHIERREFUNDCREATED":
                processorList.Add(new CreateRefundCashierRefund_CreateTask());
                break;

            case "ECC_REFUND_ACCOUNTANTAUDITED":
                processorList.Add(new RefundAuditAccountantPassed_CompleteAuditTask());
                processorList.Add(new RefundAuditAccountantPassed_CreateAuditTask());
                break;

            case "ECC_REFUND_ACCOUNTANTAUDITREJECTED":
                processorList.Add(new RefundAuditAccountantRejected_CompleteAuditTask());
                break;

            case "ECC_REFUND_CASHIERREFUNDED":
                processorList.Add(new RefundAuditCashierRefunded_CompleteAuditTask());
                processorList.Add(new RefundAuditCashierRefunded_CompleteROAuditTask());
                break;

                #endregion
            case "ECC_SOINCOME_CREATED":
                processorList.Add(new CreateSOIncome_CreateConfirmTask());
                break;

            case "ECC_SOINCOME_CONFIRMED":
                processorList.Add(new SOIncomeConfirmed_CompleteConfirmTask());
                break;

            case "ECC_SOINCOMECONFIRM_CANCELED":
                processorList.Add(new SOIncomeConfirmCanceled_CreateConfirmTask());
                break;

            case "ECC_SOINCOME_VOIDED":
                processorList.Add(new SOIncomeAbandoned_CompleteConfirmTask());
                break;

            case "ECC_SOINCOME_SPLIT":
                processorList.Add(new SOIncomeSplited_NewAndCompleteConfirmTask());
                break;

            case "ECC_BALANCEREFUND_CREATED":
                processorList.Add(new CreateBalanceRefund_CreateCSAuditTask());
                break;

            case "ECC_BALANCEREFUNDCS_CONFIRMED":
                processorList.Add(new BalanceRefundCSConfirmed_CreateFinAuditTask());
                processorList.Add(new BalanceRefundCSConfirmed_CompleteCSAuditTask());
                break;

            case "ECC_BALANCEREFUNDFIN_CONFIRMED":
                processorList.Add(new BalanceRefundFinConfirmed_CompleteFinAuditTask());
                break;

            case "ECC_BALANCEREFUND_VOIDED":
                processorList.Add(new BalanceRefundAbandoned_CompleteAuditTask());
                break;

            case "ECC_BALANCERECHARGEREQUEST_CREATED":
                processorList.Add(new CreateBalanceRechargeRequest_CreateAuditTask());
                break;

            case "ECC_BALANCERECHARGEREQUEST_AUDITED":
                processorList.Add(new BalanceRechargeRequestAudited_CompleteAuditTask());
                break;

            case "ECC_BALANCERECHARGEREQUEST_VOIDED":
                processorList.Add(new BalanceRechargeRequestAbandoned_CompleteAuditTask());
                break;
                #endregion

                #region RMA
            //case "PackageCardRMAWaitForRefund":
            //    processorList.Add(new RMARequestCreator());
            //    break;
            //case "RMDRefundSubmit":
            //    processorList.Add(new PackageCardRMAWaitForRefundCompletor());
            //    break;
            //case "RMARequestForServiceProduct":
            //    processorList.Add(new RMARequestForServiceProductCompletor());
            //    break;

            //****** Victor Added:
            case "ECC_CREATERMAREQUEST_AUDITED":
                //创建RMA申请单待审核待办事项:
                processorList.Add(new RMARequestWaitingForAuditCreator());
                break;

            case "ECC_COMPLETERMAREQUEST_AUDITED":
                //完成RMA申请单待审核待办事项:
                processorList.Add(new RMARequestWaitingForAuditCompleter());

                break;

            case "ECC_CREATERMAREFUND_SUBMITED":
                //创建RMA退款单待审核待办事项:
                processorList.Add(new RMARefundWaitingForSubmitCreator());
                break;

            case "ECC_COMPLETERMAREFUND_SUBMITED":
                //完成RMA退款单待审核待办事项:
                processorList.Add(new RMARefundWaitingForSubmitCompleter());
                break;

            case "ECC_CREATEREFUNDBALANCE_AUDITED":
                //创建RMA退款调整单待审核待办事项:
                processorList.Add(new RMARefundBalanceWaitingForAuditCreator());
                break;

            case "ECC_COMPLETEREFUNDBALANCE_AUDITED":
                //完成RMA退款调整单待审核待办事项:
                processorList.Add(new RMARefundBalanceWaitingForAuditCompleter());
                break;

            case "ECC_RMARO_SUBMITED":
                //RO单提交审核待办事项:
                processorList.Add(new RMAROSubmitCreator());
                break;

            case "ECC_RO_CANCELSUBMITED":
                //RO单取消提交审核待办事项:
                processorList.Add(new RMAROCancelSubmitCreator());
                break;

            //RO退款调整单取消审核:
            case "ECC_ROBALANCE_CANCELAUDITED":
                processorList.Add(new RMAROBalanceCancelAuditCompletor());
                break;

                #endregion

                #region IM
            case "ECC_PRODUCTPRICE_SUBMITED":
                processorList.Add(new ProductPriceAuditSubmitTask());
                break;

            case "ECC_PRODUCTPRICE_AUDITED":
                processorList.Add(new ProductPriceAuditTask());
                break;

            case "ECC_PRODUCTPRICE_REJECTED":
                processorList.Add(new ProductPriceRejectTask());
                break;

            case "ECC_MANUFACTURER_SUBMITED":
                processorList.Add(new ManufacturerAuditSubmitTask());
                break;

            case "ECC_MANUFACTURER_AUDITED":
                processorList.Add(new ManufacturerAuditTask());
                break;

            case "ECC_MANUFACTURER_REJECTED":
                processorList.Add(new ManufacturerRejectTask());
                break;

            case "ECC_MANUFACTURER_CANCELED":
                processorList.Add(new ManufacturerCancelTask());
                break;

            case "ECC_BRAND_SUBMITED":
                processorList.Add(new BrandAuditSubmitTask());
                break;

            case "ECC_BRAND_AUDITED":
                processorList.Add(new BrandAuditTask());
                break;

            case "ECC_BRAND_REJECTED":
                processorList.Add(new BrandRejectTask());
                break;

            case "ECC_CATEGORY_SUBMITED":
                processorList.Add(new CategoryAuditSubmitTask());
                break;

            case "ECC_CATEGORY_AUDITED":
                processorList.Add(new CategoryAuditTask());
                break;

            case "ECC_CATEGORY_REJECTED":
                processorList.Add(new CategoryRejectTask());
                break;

            case "ECC_CATEGORY_CANCELED":
                processorList.Add(new CategoryCancelTask());
                break;

            case "ECC_UPDATEPRODUCTPRICEREQUEST_CANCELED":
                processorList.Add(new CanceledUpdateProductPriceRequest_CompleteUpdateProductPriceRequestTask());
                break;
                #endregion

                #region Customer
            case "ECC_RMAREFUND_AUDITED":
                processorList.Add(new AuditRMARefundMessageTask());
                break;

            case "ECC_RMAREFUND_REJECTED":
                processorList.Add(new RejectRMARefundMessageTask());
                break;
                #endregion

                #region PO
            case "ECC_GATHERSETTLEMENT_CREATED":
                processorList.Add(new CreateGatherSettlement_CreateAuditTask());
                break;

            case "ECC_GATHERSETTLEMENTAUDIT_CANCELED":
                processorList.Add(new AuditCanceledGatherSettlement_CreateAuditTask());
                processorList.Add(new AuditCanceledGatherSettlement_CompleteSettleTask());
                break;

            case "ECC_GATHERSETTLEMENT_AUDITED":
                processorList.Add(new AuditedGatherSettlement_CreateSettleTask());
                processorList.Add(new AuditedGatherSettlement_CompleteAuditTask());
                break;

            case "ECC_GATHERSETTLEMENT_VOIDED":
                processorList.Add(new AbandonedGatherSettlement_CompleteAuditTask());
                break;

            case "ECC_GATHERSETTLEMENT_SETTLED":
                processorList.Add(new SettledGatherSettlement_CompleteSettleTask());
                break;

            case "ECC_GATHERSETTLEMENTSETTLE_CANCELED":
                processorList.Add(new SettleCanceledGatherSettlement_CreateSettleTask());
                break;

            case "ECC_VENDORREFUNDINFO_SUBMITED":
                processorList.Add(new CreateVendorRefundInfo_CreateTask());
                break;

            case "ECC_VENDORREFUNDINFO_AUDITED":
                processorList.Add(new AuditedVendorRefundInfo_CompleteTask());
                break;

            case "ECC_VENDORREFUNDINFO_REJECTED":
                processorList.Add(new RejectedVendorRefundInfo_CompleteTask());
                break;

            case "ECC_VENDORRANKREQUEST_AUDITED":
                processorList.Add(new AuditedVendorRankRequest_CompleteTask());
                break;

            case "ECC_VENDORRANKREQUEST_CANCELED":
                processorList.Add(new CanceledVendorRefundInfo_CompleteTask());
                break;

            case "ECC_VENDORRANKREQUEST_SUBMITED":
                processorList.Add(new SubmitVendorRankRequest_CreateTask());
                break;

            case "ECC_VENDORFINANCEINFOREQUEST_SUBMITED":
                processorList.Add(new SubmitVendorFinanceInfoRequest_CreateTask());
                break;

            case "ECC_VENDORFINANCEINFOREQUEST_AUDITED":
                processorList.Add(new AuditedVendorFinanceInfoRequest_CompleteTask());
                break;

            case "ECC_VENDORFINANCEINFOREQUEST_REJECTED":
                processorList.Add(new RejectedVendorFinanceInfoRequest_CompleteTask());
                break;

            case "ECC_VENDORFINANCEINFOREQUEST_CANCELED":
                processorList.Add(new CanceledVendorFinanceInfoRequest_CompleteTask());
                break;

            case "ECC_PURCHASEORDER_SUBMITED":
                processorList.Add(new SubmitPurchaseOrderAudit_CreateTask());
                break;

            case "ECC_PURCHASEORDER_CONFIRMED":
                processorList.Add(new PurchaseOrderAuditConfirm_CompleteTask());
                break;

            case "ECC_PURCHASEORDER_REJECTED":
                processorList.Add(new PurchaseOrderAuditReject_CompleteTask());
                break;

            case "ECC_PURCHASEORDERETATIMEINFO_SUBMITED":
                processorList.Add(new SubmitPurchaseOrderETATimeInfo_CreateTask());
                break;

            case "ECC_PURCHASEORDERETATIMEINFO_AUDITED":
                processorList.Add(new PurchaseOrderETATimeInfoAudit_CompleteTask());
                break;

            case "ECC_PURCHASEORDERETATIMEINFO_CANCELED":
                processorList.Add(new PurchaseOrderETATimeInfoCancel_CompleteTask());
                break;

            case "ECC_SETTLEMENTRULE_CREATED":
                processorList.Add(new SettlementRuleCreate_CreateTask());
                break;

            case "ECC_SETTLEMENTRULE_AUDITED":
                processorList.Add(new SettlementRuleAudit_CompleteTask());
                break;

            case "ECC_SETTLEMENTRULE_ABANDONED":
                processorList.Add(new SettlementRuleAbandon_CompleteTask());
                break;

            case "ECC_CONSIGNSETTLEMENT_CREATED":
                processorList.Add(new ConsignSettlementCreate_CreateTask());
                break;

            case "ECC_CONSIGNSETTLEMENT_CANCELED":
                processorList.Add(new ConsignSettlementCancel_CompleteTask());
                break;

            case "ECC_CONSIGNSETTLEMENT_ABANDONED":
                processorList.Add(new ConsignSettlementAbandon_CompleteTask());
                break;

            case "ECC_CONSIGNSETTLEMENT_AUDITED":
                processorList.Add(new ConsignSettlementAudit_CompleteTask());
                processorList.Add(new ConsignSettlementAuditCreate_CreateTask());
                break;

            case "ECC_CONSIGNSETTLEMENT_SETTLEMENTED":
                processorList.Add(new ConsignSettlementSettlement_CompleteTask());
                break;

            case "ECC_CONSIGNSETTLEMENT_CANCELSETTLEMENTED":
                processorList.Add(new ConsignSettlementCancelSettlement_CompleteTask());
                break;

            case "ECC_COLLECTIONPAYMENT_CREATED":
                processorList.Add(new CollectionPaymentCreate_CreateTask());
                break;

            case "ECC_COLLECTIONPAYMENT_CANCELED":
                processorList.Add(new CollectionPaymentCancel_CompleteTask());
                break;

            case "ECC_COLLECTIONPAYMENT_ABANDONED":
                processorList.Add(new CollectionPaymentAbandon_CompleteTask());
                break;

            case "ECC_COLLECTIONPAYMENT_AUDITED":
                processorList.Add(new CollectionPaymentAudit_CompleteTask());
                processorList.Add(new CollectionPaymentAuditCreate_CreateTask());
                break;

            case "ECC_COLLECTIONPAYMENT_SETTLEMENTED":
                processorList.Add(new CollectionPaymentSettlement_CompleteTask());
                break;

            case "ECC_COLLECTIONPAYMENT_CANCELSETTLEMENTED":
                processorList.Add(new CollectionPaymentCancelSettlement_CompleteTask());
                break;

                #endregion
            }

            return(processorList);
        }