Transform Split Stage
The Transform Split stage allows a JSON array of messages to be split into separate messages for independent processing.
Stage Overview
The Transform Split stage allows a JSON array of messages to be split into separate messages for independent processing.
Stage Definition File Location
All Transform Split stages are defined by creating an appropriately formatted JSON definition file in the following location:
Stage JSON Definition File Format
The JSON definition file for a Transform Split stage is as follows:
{
"name": "stage-name",
"displayName": "Brief Stage Title",
"description": "Brief description of the stage.",
"enabled": "$env:STATUS_<INTEGRATION_NAME>",
"source": "source-event",
"concurrency": 10,
"objectsPerSplit": 1,
"preLogTransformSchemaFileName": "schemas/path/to/schema/schema-name.liquid",
"preLogTransformSchemaType": "liquid|javascript",
"preLogTransformFormat": "json|xml|csv"
}
| Property | Description |
|---|---|
name | The name of the stage. |
displayName | Optional (but highly recommended). A short (3 or 4 word) "display name" for the stage, used as a "title" of the stage in the Integration Hub Portal service's self-documentation capability. |
description | Optional (but highly recommended). A brief (10 to 15 word) description of the stage, used as a brief description of the stage's purpose in the Integration Hub Portal service's self-documentation capability. For a more detailed explanation (when needed), use the stage markdown feature. |
enabled | Optional boolean flag (true or false). Default is true.Generally set via a DevOps variable. Controls if the stage is deployed enabled or not. |
source | The source event that the stage subscribes to. See Pub/Sub Model. Alternatively, sources may be supplied, and an array of one or more source events can be subscribed to. |
concurrency | Optional number of concurrent runs permitted for the stage. Default is 10. |
objectsPerSplit | Optional number of objects per message. Default is 1. See Output Format below. |
Pre-Logging Transformation
This stage supports the optional pre-logging transformation feature using the following fields:
preLogTransformSchemaFileNamepreLogTransformSchemaTypepreLogTransformFormat
See the Pre-Logging Transformation for details.
Required Input Format
The Transform Split stage requires an input message of the following format:
[
{
// Object 1
},
{
// Object 2
},
// etc.
]
Output Format
When used with an objectsPerSplit value of 1 (the default), the Transform Split stage splits the input message into multiple object messages, one for each object in the input object array.
That is, with an input of:
[
{
// Object 1
},
{
// Object 2
},
{
// Object
}
]
then three messages will be output:
{
// Object 1
}
and
{
// Object
}
and
{
// Object 3
}
However, if used with an objectsPerSplit value of 2 (for example), the Transform Split stage splits the input message into multiple array messages, each containing up to the specified number of objects.
With the same example input as above, then two messages will be output:
[
{
// Object 1
},
{
// Object 2
}
]
and
[
{
// Object 3
}
]Last updated on