Exporting event types to an XML schema
You can create an XML schema file from your event types to write event messages in the correct format, or to share with other application.
Procedure
Alternatively, you can right-click the solution project in the Solution Explorer, and click Export. Then, select .
Results
An .xsd file is created for each BOM entry in a namespace folder in the location that you specified. The file name is created from the name of the BOM entry.
Example
The following example shows an event defined in the business definition language. This airport close event has a relationship to an airport entity.
an airport close event is a business event time-stamped by an event datetime (date & time).
an airport close event is related to an airport.
The following XML is generated from the event definition.
<element name="AirportCloseEvent" type="m:AirportCloseEvent"/>
<complexType name="AirportCloseEvent">
<annotation>
<appinfo source="http://www.ibm.com/ia/Annotation">
<event elementName="AirportCloseEvent"/>
</appinfo>
</annotation>
<sequence>
<element name="airport" type="string">
<annotation>
<appinfo source="http://www.ibm.com/ia/Annotation">
<businessName name="airport"/>
<businessType type="sample.acmeairlines.model.Airport"/>
</appinfo>
</annotation>
</element>
<element name="eventDatetime" type="dateTime">
<annotation>
<appinfo source="http://www.ibm.com/ia/Annotation">
<timestamp/>
</appinfo>
</annotation>
</element>
</sequence>
</complexType>