Reporting Service: Configuration

The following options can be set in the application.properties.

reporting.service.url

The URL of the reporting service. This property is used in the reportstore bundle as an initial value for the target property. It is not considered by the backend service. The default value is ${applicationURL.noscheme}/resources/reports/.

reporting.workspace.folder

This property defines the working directory for the reporting service. It must point to a directory with write access. The purpose of this directory is to extract uploaded report templates prior to report generation. The default value is $\{data.directory.location\}/reports.

reporting.staticreports.folder

This property defines the location for static report templates. Static report templates are imported into the database during the start of the servlet container. The IDs are generated based on the name of the report template folder and the prefix s_. Static report templates can not be deleted in map.apps manager. The default value is /WEB-INF/classes/reports.

reporting.staticreports.refreshperiod

This property defines how often the static reports folder is scanned for changes. The default is -1, which means that it is scanned only at start of the application. The value is in milliseconds, e.g 30000 means scan each 30 seconds.

reporting.printtask.service.url

This property specifies the URL of the ArcGIS Server Print Task used to generate map images inside reports. The default value reuses the value for the printtask.service.url property. The PrintTask needs to be configured as synchronous.

reporting.default.locale

This property specifies the default language transported into the report engine. The default value reuses the value for the client.config.defaultLocale property.

Global parameter

It is possible to configure special global parameters for report generation in the file WEB-INF/classes/spring-report-config.xml. A sample of such a global parameter is the reporting.printtask.service.url which is provided as parameter CT_MAP_PRINT_TASK_URL during report generation. The configuration section globalReportParameter can be extended to add your own parameters.

<util:map id="globalReportParameter">
    <description>
        add global shared report template parameter here!
    </description>
    <entry key="CT_MAP_PRINT_TASK_URL" value="${reporting.printtask.service.url}"/>
    <entry key="REQUEST_COOKIE_SSO_NAME" value="${security.sso.cookie.name}"/>

    <!-- add here own parameters provided to all report templates -->
    <entry key="MY_SPECIAL_PARAMETER" value="A Value"/>
</util:map>