/// <summary>
        /// Run the code activity
        /// </summary>
        /// <param name="executionContext">Workflow context</param>
        protected override void Execute(CodeActivityContext executionContext)
        {
            var result = Text.Get <string>(executionContext)
                         .SafeSubstring(StartIndex.Get <int>(executionContext), Length.Get <int>(executionContext),
                                        LeftToRight.Get <bool>(executionContext));

            Result.Set(executionContext, result);
        }
Пример #2
0
        /// <summary>
        /// Executes the workflow activity.
        /// </summary>
        /// <param name="cube">The cube.</param>
        protected override void Execute(CubeBase Cube)
        {
            var    executionContext = (ActivityContext)Cube.BaseSystemObject;
            string result           = PerformSubstring(pText.Get <string>(executionContext), StartIndex.Get <int>(executionContext), Length.Get <int>(executionContext), LeftToRight.Get <bool>(executionContext));

            pResult.Set(executionContext, result);
        }