Skip to content

Event Mapper and Transformer

Arya Ketan edited this page Nov 13, 2015 · 5 revisions

Event Mapper and Transformer

The Event Mapper and Transformer transforms the event as per the mapping of source and destination schema. It maps the source entity to destination entity. The source attribute is mapped to destination attribute within the entity.

A source entity can be mapped to more than one destination entity types.

If there is a one-to-one correspondence between source entity and destination entity then "map-all" feature can be used. In this case the config is very simple. For cases where some attributes of the destination entity maps to the source entity detailed mapping can be provided. Hierarchical mapping is supported as well.

MAPPER_CONFIG
{
	or_test:
	{
		"Person"=[
		{
			"destinationNamespace":"or_test",
			"destinationEntity":"PERSONPARALLEL",
			"columnMap": {
				"id":"pid",
				"firstName":"firstname",
				"lastName":"lastname",
				"birthDate":"birthdate",
				"deleted":"deleted"
			},
			"primaryKeyList": [ "txn_id" ],
			"groupNo":"1"
		},
		{
			"mapAll":"true",
			"groupNo":"1"
		}]
	}
 }

Please see sample application for details.