xmlas the mapping type. This property changes based on the event adapter selected. It lists only the mapping types supported by a particular event adapter.
Click Add to add the individual attribute mapping to the event builder
For the correct properties to show, you must selected an event adaptor adapter that supports XML mapping type.
<PRODUCT_HOME>/repository/deployment/server/eventbuilders directory, which is the event builder deployment directory. Since hot deployment is enabled, you can simply add/remove files to deploy/undeploy from the server.
Create the XML file with the following XML based event builder configurations. Event builder implementation must start with
<eventbuilder> root element and the namespace set to
http://wso2.org/carbon/eventbuilder as in the example below:
<?xml version="1.0" encoding="UTF-8"?> <eventBuilder name="xmlbuilder" xmlns="http://wso2.org/carbon/eventbuilder"> <from eventAdaptorName="localWsEventReceiver" eventAdaptorType="ws-event-local"> <property name="topic">AllStockQuotes</property> </from> <mapping type="xml" batchProcessingEnabled="true" > <xpathDefinition namespace="http://ws.cdyne.com/" prefix="quotedata"/> <property> <from xpath="//quotedata:StockQuoteEvent/quotedata:LastTradeAmount"/> <to name="price" type="double"/> </property> <property> <from xpath="//quotedata:StockQuoteEvent/quotedata:StockSymbol"/> <to name="symbol" type="string"/> </property> </mapping> <to streamName="stockQuotes" version="1.0.0"/> </eventBuilder>