Exemple #1
0
        protected override void ExecuteCrmWorkFlowActivity(CodeActivityContext context, LocalWorkflowContext localContext)
        {
            if (context == null)
            {
                throw new ArgumentNullException(nameof(context));
            }
            if (localContext == null)
            {
                throw new ArgumentNullException(nameof(localContext));
            }

            string string1 = String1.Get(context);
            string string2 = String2.Get(context);
            string joiner  = Joiner.Get(context);

            string joinedString = string.Join(joiner, string1, string2);

            JoinedString.Set(context, joinedString);
        }
Exemple #2
0
        protected override void Execute(CodeActivityContext executionContext)
        {
            ITracingService tracer = executionContext.GetExtension <ITracingService>();

            try
            {
                string string1 = String1.Get(executionContext);
                string string2 = String2.Get(executionContext);
                string joiner  = Joiner.Get(executionContext);

                string joinedString = System.String.Join(joiner, string1, string2);

                JoinedString.Set(executionContext, joinedString);
            }
            catch (Exception ex)
            {
                tracer.Trace("Exception: {0}", ex.ToString());
            }
        }