Software AG Products 10.7 | Integrating On-Premises and Cloud Applications | Integration Server Built-In Services | Report Folder | Summary of Elements in this Folder | pub.report:runTemplate
 
pub.report:runTemplate
WmPublic. Applies a template in a file to a specified document (IData object).
Input Parameters
$template
String Name of the template file (for example, mytemp.html or mytemp.xml).
$package
String Name of the package where the template resides (for example, Default).
$values
Document Document (IData object) to bind against $template.
fileEncoding
String Optional. The encoding of the template file. If fileEncoding is not specified, the default file encoding specified in the watt.server.netEncoding server parameter or the system file encoding will be used. Examples: SJIS, ASCII, ISO8859_1.
Output Parameters
$txt
String Result from applying the template to $values.
Usage Notes
The pub.report:runTemplate service uses template files that reside in the pub and templates directories of the package. The service locates the output template by its file name and the name of the package in which it resides. For example, to apply a template that resides in IntegrationServer_directory\packages\Default\templates\mytemp.xml, invoke the service with the following values.
$template: mytemp.xml
$package: Default
Integration Server executes any services in the template file using the credentials of the user who invoked the pub.report:runTemplate service.