AlfrescoPipelineDefinition

An AlfrescoPipelineDefinition is created using a Spring bean with the following attributes:

Attribute Value Description
id User-defined A unique ID for the bean.
parent alfresco.pipeline.definition.abstract The parent bean.

The AlfrescoPipelineDefinition takes the following properties:

Property Type Mandatory Description
pipelineDefinition PipelineDefinition Required Reference to a Pipeline definition bean.
resultDocumentName String Optional The literal name of the result document that will be created by the pipeline.
resultDocument NamePattern String Optional The pattern that will be used to automatically generate the result document name if none is supplied using the resultDocumentName property. By default: ${source.baseName} .${result.mediaType.extension}
resultFolderName String Optional The literal name of the ouput folder that will be created by the pipeline. This property is only used if resultFolder is true.
resultFolderNamePattern String Optional The pattern that will be used to automatically generate the result folder name if none is supplied using the resultFolderName property. By default: ${source.baseName}
resultFolder Boolean Optional Boolean value to indicate if the pipeline generates an output folder or not. By default: false (does not generate an output folder).
optionsNodeType QName Optional The content type in Alfresco used to store the options for the pipeline. By default: pipeline:optionsNode. Use a fully-qualified name with Clark notation as the key of the entry.

Once defined, and the server restarted, the new Alfresco pipeline definition will be available in the Create Pipeline Configuration wizard.

AlfrescoPipelineDefinition example

<bean id="alfresco.pipeline.dita.map2xhtml.troubleshooting" parent="alfresco.pipeline.definition.abstract">
  <property name="pipelineDefinition" ref="pipeline.dita.map2xhtml.troubleshooting" />
  <property name="optionsNodeType" value="{http://www.componize.org/dita-open-toolkit#}xhtmlOptionsNode" />
  <property name="resultDocumentName" value="index.html" />
  <property name="resultFolder" value="true" />
  <property name="title" value="DITA Map to XHTML (with troubleshooting support)" />
  <property name="description" value="Transforms a DITA Map into XHTML pages." />
</bean>

Debugging

To debug your AlfrescoPipelineDefinition, add the following entry to your log4j.properties file:

log4j.logger.com.componize.alfresco.repo.xml.pipeline.DefaultAlfrescoPipelineRegistry=debug