View on GitHub

fj-doc-quickstart

Docs Home

QuickstartB004ComplexProcessStep

version : 001

Maven dependancies :

QuickstartB004ComplexProcessStep show how to use custom free marker methods.

This example is very similar to QuickstartB003EmbedBase64Image, but use a more compact chain configuration.

Here is the simple freemarker template

Here is the chain from doc process configuration

	<chain id="complex-process-step" extends="config">
		<step id="step-process" defaultBehaviour="CONTINUE"
			description="Apply FreeMarker template to get the full XML" 
			type="org.fugerit.java.doc.freemarker.config.FreeMarkerComplexProcessStep">
			<!-- 
				template-path, allow for inline definition of template to use, with chainId variable available
				map-atts, is a list of comma separated attributes to map from doc process context to freemarker map
				map-all, if '1' or 'true' all doc process context attributes are mapped
			-->
			<properties 
				template-path="${chainId}.ftl" 
				map-atts="imgDynamicPipelineBase64"/>		
		</step>
	</chain>