示例#1
0
        protected override void Execute(NativeActivityContext context)
        {
            try
            {
                string fileName = this.In_FileName.Get(context);
                string dbPath   = this.In_DbPath.Get(context);

                InboundStrEmailsHandler iseh = new InboundStrEmailsHandler(dbPath);
                string phaseX = iseh.GetCurrentPhaseViaFileName(fileName);
                this.Out_Phase.Set(context, phaseX);
            }
            catch (Exception e)
            {
                Console.WriteLine($"[{nameof(this.GetType)}] Exception >>> {e.Message}");
                throw e;
            }
        }
        protected override void Execute(NativeActivityContext context)
        {
            try
            {
                string fileName = this.In_FileName.Get(context);
                string dbPath   = this.In_DbPath.Get(context);
                int    cutOff   = this.In_CutOff.Get(context);

                InboundStrEmailsHandler iseh = new InboundStrEmailsHandler(dbPath);
                bool isApproved = iseh.IsDisapproved(fileName, cutOff);
                this.Out_IsDisapproved.Set(context, isApproved);
            }
            catch (Exception e)
            {
                Console.WriteLine($"[{nameof(this.GetType)}] Exception >>> {e.Message}");
                throw e;
            }
        }
示例#3
0
        protected override void Execute(NativeActivityContext context)
        {
            try
            {
                string fileName = this.In_FileName.Get(context);
                string dbPath   = this.In_DbPath.Get(context);


                InboundStrEmailsHandler iseh = new InboundStrEmailsHandler(dbPath);
                DataTable resultDT           = iseh.LoadFromDbViaFileName(fileName);
                this.Out_DataTable.Set(context, resultDT);
            }
            catch (Exception e)
            {
                Console.WriteLine($"[{nameof(this.GetType)}] Exception >>> {e.Message}");
                throw e;
            }
        }
示例#4
0
        protected override void Execute(NativeActivityContext context)
        {
            try
            {
                string dbPath        = this.In_DbPath.Get(context);
                string fileName      = this.In_FileName.Get(context);
                string subject       = this.In_Subject.Get(context);
                string emailUsername = this.In_EmailUsername.Get(context);
                string response      = this.In_Response.Get(context);
                string responseDate  = this.In_ResponseDate.Get(context);
                string inv           = this.In_Inv.Get(context);
                string msg           = this.In_Message.Get(context);

                InboundStrEmailsHandler iSEHandler = new InboundStrEmailsHandler(dbPath, fileName, subject, emailUsername, response, responseDate, inv, msg);
                iSEHandler.InsertToDb();
            }
            catch (Exception e)
            {
                Console.WriteLine($"[InsertInboundStrEmailsToDb] Exception  >>> {e.Message}");
                throw e;
            }
        }