Creating event definitions from XSD files
You can create event definitions that are based on the structures of elements defined in XSD schema files.
To create an event definition from an XSD file:
1. In the Project Explorer view, right-click the project’s eventdefinitions folder and select New > Event Definition from the pop-up menu. The New Event Definition dialog is displayed.
2. In the New Event Definition dialog, in the Generate Event Definition using field, select XSD File and click Next. The Choose output location for Event Definition dialog is displayed.
3. In the Choose output location for Event Definition dialog, enter information in the following fields:
a. The Containing Folder field is the folder where the file will be saved; by default this is the currently selected folder of the current project, but you can select another folder or project using the Browse button.
b. In the File name field, specify the name of the new file. Specifying the .mon extension is optional as Apama Studio will add the .mon file extension. Apama Studio will not let you specify anything except .mon as a file extension.
c. The Package field is optional; information in this field is an EPL package name.
4. Click Next. This displays the Select XSD File dialog.
5. In the Select XSD File dialog, click the Browse button to the right of the Schema Element/Type field. This displays the Type Chooser dialog.
6. In the Type Chooser dialog, specify the file that contains schema's global element that you want to use as the root element on which to base the event definition. Click the Browse button to navigate to the file. The Drop-down arrow allow you to change scope among Recent files, Local file system, Workspace, Remote URL, and XML Schema. After selecting a file, click OK. This returns to the Select XSD File dialog with the root element you selected displayed in the Schema Element/Type field.
7. In the Select XSD File dialog, in the Event Name field, specify the name you want to assign to the root level event.
8. Click Finish. Apama Studio creates an EPL file that defines the root level event along with associated nested events.
Copyright © 2013
Software AG, Darmstadt, Germany and/or Software AG USA Inc., Reston, VA, USA, and/or Terracotta Inc., San Francisco, CA, USA, and/or Software AG (Canada) Inc., Cambridge, Ontario, Canada, and/or, Software AG (UK) Ltd., Derby, United Kingdom, and/or Software A.G. (Israel) Ltd., Or-Yehuda, Israel and/or their licensors.