Overriding the supportedSourceAndTargetList - Overriding the supportedSourceAndTargetList - Alfresco - Alfresco Transform Service - Alfresco/Alfresco-Transform-Service/4.1/Alfresco-Transform-Service/Configure/Configure-Transform-Service/Configuring-T-Engines/Modifying-existing-pipeline-configurations/Overriding-the-supportedSourceAndTargetList - 4.1 - 4.1

Alfresco Transform Service

Platform
Alfresco
Product
Alfresco Transform Service
Release
4.1
License
ft:lastPublication
2025-04-04T12:53:25.056000
ft:locale
en-US

Rather than totally override an existing transform definition from another T-Engine or pipeline file, it is generally simpler to modify the "supportedSourceAndTargetList" by adding elements to the optional "addSupported", "removeSupported" and "overrideSupported" lists. You will need to specify the "transformerName" but you will not need to repeat all the other "supportedSourceAndTargetList" values, which means if there are changes in the original, the same change is not needed in a second place.

The following example adds one transform, removes two others and changes the "priority" and "maxSourceSizeBytes" of another. This is done before processing any other configuration in the same T-Engine or pipeline file:

{
  "addSupported": [
    {
      "transformerName": "Archive",
      "sourceMediaType": "application/zip",
      "targetMediaType": "text/csv",
      "priority": 60,
      "maxSourceSizeBytes": 18874368
    }
  ],
  "removeSupported": [
    {
      "transformerName": "Archive",
      "sourceMediaType": "application/zip",
      "targetMediaType": "text/xml"
    },
    {
      "transformerName": "Archive",
      "sourceMediaType": "application/zip",
      "targetMediaType": "text/plain"
    }
  ],
  "overrideSupported": [
    {
      "transformerName": "Archive",
      "sourceMediaType": "application/zip",
      "targetMediaType": "text/html",
      "priority": 60,
      "maxSourceSizeBytes": 18874368
    }
  ]
  ...
}