This section describes the XML syntax you can include in event mappers that you create for reports in the Scenarios module.

<mapper>

The <mapper> tag (required) is the root tag for defining a mapper object.

It can contain the following child tags:

<registry-descriptor>

The <registry-descriptor> tag (required) is a wrapper for information that identifies this event mapper to the registry.

It can contain the following child tags:

<input-filter>

The <input-filter> tag (required) has one attribute, context, that determines the purpose of the event mapper.

The context attribute (required) can be set to one of the following three values:

The <input-filter> tag has the following child tags:

  • <value> – Required only if you set the context attribute to "jms". It identifies the JMS message to use to collect data. For "read-only" and "audit" context attribute settings, no <value> tag is required.

Example:

<input-filter context="jms">
  <value>atg.dps.ProfilePropertyUpdate</value>
</input-filter>
<data-listener>

The <data-listener> tag (required) specifies the Nucleus path for the component of class atg.reporting.dataset.DatasetSQLLogger that you created to collect data (see Creating a New Data Collection Object for more information).

Example:

<data-listener>/atg/reporting/dataset/ProfileUpdateLoggerQueue
</data-listener>
<database>

The <database> tag (required) is a wrapper that describes the destination database for the data you want to record.

It can contain the following child tags:

<transaction-manager>

The <transaction-manager> tag (required) specifies the Nucleus address of the Transaction Manager service to use to track transaction activity for this event mapper.

Example:

<transaction-manager>/atg/dynamo/transaction/TransactionManager
</transaction-manager>

For more information, see Transaction Management in the ATG Platform Programming Guide.

<datasource>

The <datasource> tag (required) specifies the JDBC connection pool to use to create connections to the database where this event mapper stores the data it records. For more information, refer to the ATG Installation and Configuration Guide.

Example:

<datasource>dynamo:/atg/dynamo/jdbc/JTDataSource</datasource>
<table>

The <table> wrapper (required) defines the database table that will be used to store the data that this mapper records. It can contain the following child tags:

<mappings>

The <mappings> tag is a wrapper that contains one or more dataset mappings that map the property or properties you are recording to appropriate database columns.

It can contain the following child tags:

<dataset-mapping>

The <dataset-mapping> tag contains information that specifies the column to use to identify this dataset within the database. This mapping is required.

This tag can have the following child tags:

Example:

<dataset-mapping hidden="true">
  <display-name>Dataset Id</display-name>
  <column>id</column>
  <type>java.lang.String</type>
  <property>datasetId</property>
</dataset-mapping>

The hidden attribute is no longer used by ATG products.

<timestamp-mapping>

The <timestamp-mapping> tag specifies the column to use within this dataset to store information about the time that data is recorded. This mapping is required.

The <timestamp-mapping> tag can have the following child tags:

Example:

<timestamp-mapping hidden="true">
  <display-name>Time Stamp</display-name>
  <column>clocktime</column>
  <type>java.sql.Timestamp</type>
  <property>timestamp</property>
</timestamp-mapping>

The hidden attribute is no longer used by ATG products.

<property-mapping>

The <property-mapping> tag specifies the column to use to store the given piece of data as well as the actual data to record.

This tag can have the following child tags:

Example 1:

<property-mapping>
  <display-name>Old Values</display-name>
  <column>oldvalues</column>
  <type>java.lang.String</type>
  <property>context.message.reportingOldValues</property>
</property-mapping>

Example 2:

<property-mapping>
  <display-name>Label</display-name>
  <column>label</column>
  <type>java.lang.String</type>
  <property>context.label</property>
</property-mapping>

The hidden attribute is no longer used by ATG products.

<repository-item-mapping>

The <repository-item-mapping> tag specifies the column to use to store the given piece of data as well as the actual data to record. Use this tag for data that is stored as a repository item (for example, profile data).

This tag can have the following child tags:

Example:

<repository-item-mapping>
  <display-name>Profile Id</display-name>
  <column>profileid</column>
  <type>java.lang.String</type>
  <property>context.profile.repositoryid</property>
  <component>/atg/userprofiling/ProfileAdapterRepository</component>
</repository-item-mapping>

The hidden attribute is no longer used by ATG products.