File

The file source allows to read a requisition file from the filesystem.

Parameter Required Description

source

*

Set file to use this source for the requisition configuration

source.file

*

relative path from requisitions.properties to the OpenNMS requisition xml file

mapper

*

Mapper script changing the requisition. For no operation use echo, apply a Groovy script set to script

mapper.file

If set mapper is set to script, relative path to your groovy script for modifying the requisition

This source reads an already-defined requisition from an XML file. The file to read has to be a valid OpenNMS requisition already.

Example configuration for a file-based requisition
### File: myFileRequisition/requisition.properties
# This example uses a predefined OpenNMS requisition
# Path to the myCustomRequisitionFile.xml is relative
# to the requisitions.properties
source = file
source.file = myCustomRequisitionFile.xml

### default no-operation mapper
mapper = echo