I have created the following transformers:* JSON-to-XML* XML-to-XSLFO* XSLFO-to-PDFEach of these work individually. In other words, I can create folders with rules that transform from one format to another using each of these transformations.Now I'd like to create a complex or pipeline transformation that will go from JSON to PDF in one step.To do this, I've added a pipeline config to my existing tranformer properties file in subsystems/Transformers/default/default/someco_transformers.properties as follows:
# FO to PDF
content.transformer.FOP.PDF.priority=50
content.transformer.FOP.PDF.extensions.fo.pdf.supported=true
content.transformer.FOP.PDF.extensions.fo.pdf.priority=50
# JSON to XML
content.transformer.JSON.XML.priority=50
content.transformer.JSON.XML.extensions.json.xml.supported=true
content.transformer.JSON.XML.extensions.json.xml.priority=50
# XML to XSL-FO
content.transformer.XML.XSL.priority=50
content.transformer.XML.XSL.extensions.xml.fo.supported=true
content.transformer.XML.XSL.extensions.xml.fo.priority=50
# JSON to PDF
content.transformer.complex.JSON.PDF.pipeline=JSON.XML|xml|XML.XSL|fo|FOP.PDF
content.transformer.complex.JSON.PDF.extensions.json.pdf.priority=50
content.transformer.complex.JSON.PDF.extensions.json.pdf.supported=true
When I then upload my JSON document to a folder with a rule that transforms from JSON to PDF I get the following:
2015-11-30 20:58:59,004 ERROR [extensions.webscripts.AbstractRuntime] [http-bio-8080-exec-5] Exception from executeScript - redirecting to status template error: 10300028 Transformer for 'application/json' source mime type and 'application/pdf' target mime type was not found. Operation can't be performed
org.alfresco.service.cmr.rule.RuleServiceException: 10300028 Transformer for 'application/json' source mime type and 'application/pdf' target mime type was not found. Operation can't be performed
I have also tried adding:
content.transformer.complex.JSON.PDF.mimetypes.application/json.application/pdf.supported=true
But that does not seem to make a difference.Do I need anything else to enable my pipeline?Are the pipeline properties set properly?Any tips appreciated.Jeff