Overriding a Local Transform - Alfresco Content Services - 23.4 - 23.4 - Ready - Alfresco - external

Alfresco Content Services

Platform
Alfresco
Product
Alfresco Content Services
Release
23.4
License

In the same way as it is possible to combine Local transforms into pipelines, it is also possible to override a previously defined transform in a file in the local.transform.pipeline.config.dir directory. The last definition read wins. The configuration from T-Engines or the Transform Service is initially read followed by files in this directory. Files are read in alphanumeric order. So 0100-basePipelines.json is read before 0200-a-cutdown-libreoffice.json. The following example removes most of the supported source to target media types form the standard “libreoffice” transform. This is not something you would normally want to do. It also changes the max size and priority of others.

{
  "transformers": [
    {
      "transformerName": "libreoffice",
      "supportedSourceAndTargetList": [
        {"sourceMediaType": "text/csv", "maxSourceSizeBytes": 1000, "targetMediaType": "text/html" },
        {"sourceMediaType": "text/csv", "targetMediaType": "application/vnd.oasis.opendocument.spreadsheet" },
        {"sourceMediaType": "text/csv", "targetMediaType": "application/vnd.oasis.opendocument.spreadsheet-template" },
        {"sourceMediaType": "text/csv", "targetMediaType": "text/tab-separated-values" },
        {"sourceMediaType": "text/csv", "priority": 45, "targetMediaType": "application/vnd.ms-excel" },
        {"sourceMediaType": "text/csv", "priority": 155, "targetMediaType": "application/pdf" }
      ]
    }
  ]
}