protected override async Task <Action <AsyncCodeActivityContext> > ExecuteAsync(AsyncCodeActivityContext context, CancellationToken cancellationToken)
        {
            // Inputs
            var inputTextRow = InputTextRow.Get(context);

            ///////////////////////////
            // Add execution logic HERE
            string OutputAdjustedTextRow = Utils.TextRemoveEmptyRows(inputTextRow);

            ///////////////////////////

            // Outputs
            return((ctx) =>
            {
                AdjustedTextRow.Set(ctx, OutputAdjustedTextRow);
            });
        }
Example #2
0
        protected override async Task <Action <AsyncCodeActivityContext> > ExecuteAsync(AsyncCodeActivityContext context, CancellationToken cancellationToken)
        {
            // Inputs
            var inputTextRow   = InputTextRow.Get(context);
            var nullLimit      = NullLimit.Get(context);
            var bsuppressNulls = bSuppressNulls.Get(context);
            var displayLog     = DisplayLog;

            ///////////////////////////
            // Add execution logic HERE

            //Fill in Array of Words
            string[] ArrayWordsExtractedText = Utils.SplitTextBigSpaces(inputTextRow, nullLimit, bsuppressNulls, displayLog);
            ///////////////////////////

            // Outputs
            return((ctx) =>
            {
                ExtractedText.Set(ctx, ArrayWordsExtractedText);
            });
        }