예제 #1
0
        protected override void Execute(CodeActivityContext context)
        {
            string       inputFolderPath  = InputFolderPath.Get(context);
            string       outputFolderPath = OutputFolderPath.Get(context);
            string       outPutFileName   = OutPutFileName.Get(context);
            HelperMethod method           = new HelperMethod();

            method.mergeExcels(inputFolderPath, outputFolderPath, outPutFileName);
        }
예제 #2
0
        protected override void Execute(CodeActivityContext context)
        {
            string zipPath          = ZipPath.Get(context);
            string outputFolderPath = OutputFolderPath.Get(context);
            bool   result;

            try
            {
                ZipFile.ExtractToDirectory(zipPath, outputFolderPath);
                result = true;
            }
            catch (Exception ex)
            {
                result = false;
            }

            Result.Set(context, result);
        }