Developing Apama Applications > Developing Apama Applications in EPL > Making Application Data Available to Clients > Creating DataView definitions > DataViewAddDefinition
DataViewAddDefinition
Syntax
event DataViewAddDefinition {
   string msgId;
   string dvName;
   string dvDisplayName;
   string dvDescription;
   sequence<string> fieldNames;
   sequence<string> fieldTypes;
   sequence<string> keyFields;
   dictionary<string, string> extraParams;
}
Create and route an event of this type in order to create a DataView definition. The response is provided by a DataViewDefinition or DataViewException event.
Syntax description
msgId is an optional field for a message ID that applications can use to identify responses.
dvName is a unique name for this DataView definition (for example, "DataView_Weather001").
dvDisplayName is the display name for this DataView definition (for example, "Weather Manager").
dvDescription is an optional field whose value is a description of this DataView definition (for example, "This DataView exposes temperature, humidity, and visibility data for a given location.").
fieldNames includes the names of the fields that contain the data being exposed.
fieldTypes includes the names of the types of the fields that contain the data being exposed. Each type is one of string, float, integer, and boolean.
keyFields Names of field or fields whose values in a DataView item are to be combined to make a unique key that can be used instead of the dvItemId field of DataViewDeleteItem, DataViewUpdateItem, and DataViewUpdateDelta events.
extraParams is an optional field that future implementations may use.
Copyright © Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or its Subsidiaries and or/its Affiliates and/or their licensors.
Use, reproduction, transfer, publication or disclosure is prohibited except as specifically provided for in your License Agreement with Software AG.