Split
Category: Transform
Node id: split
Splits data by string delimiter, array chunking, or batch partitioning
What it does
- Three split modes: string delimiter, array chunking, batch partitioning
- Whitespace trimming for string splits
- Even distribution across batch partitions
- Configurable chunk sizes for array splitting
Use cases
- Split CSV lines into individual fields
- Chunk large FHIR bundles into smaller batches for parallel processing
- Partition patient lists for distributed workload assignment
Runtime
- Performance tier:
fast
Input ports
| Name | Type | Required | Description |
|---|---|---|---|
value | text | No | String to split (for string split type) |
data | json | No | Array to split (for array and batch split types) |
Output ports
| Name | Type | Required | Description |
|---|---|---|---|
result | json | No | Split result containing parts/chunks/batches and metadata |
count | number | No | Number of parts/chunks/batches produced |
success | boolean | No | Whether the split operation succeeded |
Settings
Basic
| Setting | Name | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|---|
| Split Type | split_type | enum | Yes | string | string, array, batch | How to split the data |
| Delimiter | delimiter | string | No | , | Delimiter for string splitting | |
| Chunk Size | chunk_size | number | No | 10 | min 1 | Number of items per chunk (for array split) |
| Batch Count | batch_count | number | No | 2 | min 1 | Number of batches to split into (for batch split) |
Advanced
| Setting | Name | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|---|
| Trim Whitespace | trim | boolean | No | true | Trim whitespace from split string parts |
Errors
| Code | Description |
|---|---|
UNSUPPORTED_SPLIT_TYPE | The specified split_type is not recognized |
MISSING_INPUT | Required input (value or data) is missing for the selected split type |
Runtime notes
- The result shape differs by split_type: string has parts[], array has chunks[], batch has batches[]
- String split trims whitespace by default; set trim=false in config to preserve it
- Batch split distributes remainder items across the first N batches for even distribution
- Wire the value input for string splitting or the data input for array/batch splitting
See Build any workflow for how to put nodes together and Ports, types and data flow for how port types connect.
Quelque chose n'est pas clair ? Envoyez vos commentaires sur la documentation par courriel.