text_processing.mdx


Overview

The Text processing component is designed to perform fundamental text manipulations within a workflow: merging multiple text inputs into a single string or splitting a single text input into multiple parts. It is a configurable utility that can be integrated into larger automation or data processing pipelines where text needs to be transformed or parsed dynamically.

This file documents the configuration options and usage of the text processing component, explaining how users can specify the operation mode (merge or split), the variables involved, delimiters, and output handling.


Functionality and Configuration Details

The component supports two primary methods:

1. Method: Split

2. Method: Merge


Detailed Explanation of Configuration Properties

Configuration

Description

Applicable Method(s)

Method

Selects the operation mode: Split or Merge.

Split, Merge

Split_ref

Variable containing text to be split. Visible only when Split is selected.

Split

Script

Template for merging texts into a single string. Visible only when Merge is selected.

Merge

Delimiters

String(s) used to split or join text parts.

Split, Merge

Output

Name of the global variable where the result is stored.

Split, Merge


Usage Examples

Example 1: Splitting a Text String

Scenario: You have a CSV string "apple,banana,orange" and want to split it into an array of fruits.

Result:
The variable fruit_list will contain ["apple", "banana", "orange"].

Example 2: Merging Text Variables with a Template

Scenario: You want to merge first name and last name variables into a full name string.

Result:
If first_name = "John" and last_name = "Doe", then full_name will be "John Doe".


Implementation Details and Notes


Interaction with Other System Components


Visual Diagram: Text Processing Component Flowchart

flowchart TD
    A[Start: Input Variables] --> B{Select Method}
    B --> |Split| C[Split Text]
    B --> |Merge| D[Merge Text]
    C --> E[Use Split_ref Variable]
    C --> F[Apply Delimiters to Split]
    D --> G[Use Script Template]
    D --> H[Apply Delimiters if needed]
    E --> I[Split text into parts]
    F --> I
    G --> J[Substitute variables in template]
    H --> J
    I --> K[Store Result in Output Variable]
    J --> K
    K --> L[Output Available for Next Components]

Summary

The text_processing.mdx file documents a versatile text manipulation component capable of splitting and merging text based on user configurations. It provides a simple yet powerful interface for text transformations, enabling integration within complex workflows via global variables and templated input. This component acts as a crucial utility in processing textual data streams efficiently and flexibly.