...
Http publisher allows you to send data as a JSON object to a predefined set of data fields in a DAS/CEP server. The data structure with predefined fields is defined in an /wiki/spaces/TESB/pages/32604253. The data is converted to the format defined by the /wiki/spaces/TESB/pages/32604253 and sent via the WSO2 data-bridge component. You can also send custom key-value pairs with data events.
Custom fields with data stream
The data bridge data agent has a map data structure that enables you to send an arbitrary number of string key-value pairs. The other data structures are the three object arrays corresponding to the key-value pairs of metadata, correlation data, and payload data of fixed stream definitions. You can change the key-value pairs in the map data structure from message to message, but they all should be of the string
data type.
You can put the data types of these custom key-value pairs into three groups according to the transmission category.
- When the key starts with
meta
: The data field is considered as a metadata custom field. It is sent with metadata and referred asmeta_
key prefix. - When the key starts with
correlation
: The data field is considered as a correlation data custom field. It is sent with correlation data and referred ascorrelation_
key prefix. - When the key starts with
payload
or any other string: The data field is considered as a payload data custom field. It is sent with payload data and saved in referred as key prefix.
Dependencies
In order to publish data to WSO2 DAS/CEP through a custom data agent, you need to have the following dependencies. You can configure the dependencies either using the class path or using the POM file.
...