Setting up standard formatters

Use this procedure to set up standard formatters settings in DeviceTypes.xml. These are the deployment formatters:

  • HTML
  • Plain text
  • ValuesOnly

For more information about writing a valid import device type XML file, Managing device types.

  1. With a text editor, open <LBI_HOME>\<SmartNotification_HOME>\conf\DeviceTypes.xml.
  2. Locate the formatter attribute and specify your formatter value.
    Formatter Description
    com.lawson.lsn.rendering.

    HtmlMailFormatter

    Generates HTML content.
    com.lawson.lsn.rendering.

    PlainTextFormatter

    Generates plain text content.

    The PlainTextFormatter attribute has the optional detail_level parameter. The allowed attribute values. low and high, specify the level of content to be delivered to the device.

    The low attribute value should be used for small capacity devices, such as email capable cell phones.

    com.lawson.lsn.rendering.

    ValueOnlyFormatter

    Outputs only the results of the notification.

    The ValueOnlyFormatter attribute has the optional detail_level parameter. The allowed attribute values, low and high, specify the level of content to be delivered to the device.

    The low attribute value should be used for small capacity devices, such as email capable cell phones.

    this is an example of the formatter attribute setting:

    <device-type name="HTML File" 
    driver="com.lawson.lsn.deliveryengine.drivers.FileDeviceDriver" 
    formatter="com.lawson.lsn.rendering.HtmlFormatter" 
    administrative="true" 
    extension-map="text/html=.html;text/*=.txt;*=.txt" />
  3. Save and close DeviceTypes.xml.