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
Optional field for a message ID that applications can use to identify responses.
dvName
Unique name of this DataView definition, for example; "DataView_Weather001".
dvDisplayName
Display name for this DataView definition, for example, "Weather Manager".
dvDescription
Optional field whose value is a description of this DataView, for example, "This DataView exposes temperature, humidity, and visibility data for a given location."
fieldNames
Names of the fields that contain the data being exposed.
fieldTypes
Types of the fields that contain the data being exposed. Each type is one of string, float, integer, or boolean.
keyFields
Names of one or more 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 in the following events: DataViewDeleteItem, DataViewUpdateItem, and DataViewUpdateDelta.
extraParams
Optional field that future implementations may use.
Copyright © 2013-2015 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.