Transform pipelines - Transform pipelines - Alfresco - Alfresco Transform Service - Alfresco/Alfresco-Transform-Service/3.0/Alfresco-Transform-Service/Alfresco-Transform-Service/Configure/Configuring-T-Engines/Transform-pipelines - 3.0

Alfresco Transform Service

Platform
Alfresco
Product
Alfresco Transform Service
Release
3.0
ft:lastPublication
2026-05-06T19:56:27.660000
ft:locale
en-US
ArchiveStatus
Archived

Transformations may be combined in a pipeline to form a new transform, where the output from one becomes the input to the next and so on. A pipeline definition (JSON) defines the sequence of transform steps and intermediate Media Types. Like any other transformer, it specifies a list of supported source and target Media Types. If you don't supply any, all possible combinations are assumed to be available. The definition may reuse the transformOptions of transformers in the pipeline, but typically will define its own subset of these.

The following example begins with the helloWorld Transformer described in Creating a T-Engine, which takes a text file containing a name and produces an HTML file with a *Hello ` message in the body. This is then transformed back into a text file.

This example contains just one pipeline transformer, but many may be defined in the same file, such as custom_pipelines.json:

{
  "transformers": [
    {
      "transformerName": "helloWorldText",
      "transformerPipeline" : [
        {"transformerName": "helloWorld", "targetMediaType": "text/html"},
        {"transformerName": "html"}
      ],
      "supportedSourceAndTargetList": [
        {"sourceMediaType": "text/plain", "priority": 45,  "targetMediaType": "text/plain" }
      ],
      "transformOptions": [
        "helloWorldOptions"
      ]
    }
  ]
}
  • transformerName - Unique name for the transform.
  • transformerPipeline - A list of transformers in the pipeline. The targetMediaType specifies the intermediate Media Types between transformers. There is no final targetMediaType as this comes from the supportedSourceAndTargetList.

  • supportedSourceAndTargetList - The supported source and target Media Types, which refer to the Media Types this pipeline transformer can transform from and to, additionally you can set the priority and the maxSourceSizeBytes see Supported Source and Target List. If blank, this indicates that all possible combinations are supported. This is the cartesian product of all source types to the first intermediate type and all target types from the last intermediate type. Any combinations supported by the first transformer are excluded. They will also have the priority from the first transform.

  • transformOptions - A list of references to options required by the pipeline transformer.