The APE provides example templates. They are contained in the ZIP file called apesamples-XXX.zip available in the %ADELIWS%\distrib\AdeliaPrintEngine directory.
To test these examples:
- Unzip the file in a directory, "d:/foo" for instance,
- Change the configuration file d:/foo/conf/freemarker.properties in the template loader section by replacing "c:/myApesamplesDirectory/Training" with your "d:/foo/Training" directory,
- Start the MergeTransformMicroService application, indicating the directory containing this file :
ape.bat -Dcom.hardis.adelia.mergedocengine.freemarker.conf="d:/foo/conf" - Start Insomnia. The templates are delivered with test sets of data which is usable by Insomnia.
Two workspace exports in Insomnia format are available:- "Training\Basic_XSL-FO\Basic_XSL-FO_Insomnia_Export.json", grouping together templates written in XSL-FO language (without the use of HardisFo macros) and
- "Training\Hardis_XSL-FO\Hardis_XSL-FO_Insomnia_Export.json", grouping together templates written using HardisFo macros.
To import them into Insomnia, display the contextual menu in the "Insomnia" default workspace and click on "Import/Export". Click on "Import Data, From File" and select the JSON export file.
- Select a template example in the tree view on the left and click on "Send" in the top bar.