「要求」或「遞送」Meta 資料的 XML 格式

這個 XML 格式的結尾是延伸的資料元素。 配接器要求及遞送事件的延伸資料元素代表來自已處理之商業物件的資料。 這個資料包含商業物件的名稱、商業物件的索引鍵 (外來或本端) 及母項商業物件的子項。 子項商業物件將分割成與母項 (名稱、索引鍵及任何子項商業物件) 相同的資料。 這個資料會以事件定義的延伸資料元素呈現。此資料將視商業物件、索引鍵及已處理之子項商業物件而變更。 本事件定義中的延伸資料只是範例,代表具有索引鍵 EmployeeId 且名為 Employee 的商業物件,及具有索引鍵 EmployeeId的子項商業物件 EmployeeAddress。此型樣可繼續,直到與特定商業物件的資料數相同為止。

<eventDefinition name="createEmployee"     //Comment: This
  extension name is always the business object verb followed by the business
  object name
           parent="event">
     <property name ="creationTime"  //Comment: example value would be 
 "2004-05-13T17:00:16.319Z"
          required="true" />
     <property name="globalInstanceId" //Comment: Automatically generated
  by Common Event Infrastructure
          required="true"/>
     <property name="localInstanceId"    //Comment: Value is business
  object verb+business object name+#+app name+ business object identifier
          required="false"/>
     <property name="sequenceNumber"    //Comment: Source defined number 
 for messages to be sent/sorted logically
          required="false"/>
     <property name="version"  //Comment: Version of the event...value is
  set to 1.0.1 
          required="false"
          defaultValue="1.0.1"/>
     <property name="sourceComponentId"
          path="sourceComponentId"
          required="true"/>
     <property name="application"    //Comment: The name#version of the
  source application generating the event...example is
  "SampleConnector#3.0.0"
          path="sourceComponentId/application"
          required="false"/>
     <property name="component"   //Comment: This will be the name#version 
 of the source component.
          path="sourceComponentId/component"
          required="true"
          defaultValue="ConnectorFrameWorkVersion#4.2.2"/>
     <property name="componentIdType"     //Comment: specifies the format
  and meaning of the component
          path="sourceComponentId/componentIdType"
          required="true"
          defaultValue="Application"/>
     <property name="executionEnvironment" //Comment: Identifies the
  environment#version the app is running in...example is "Windows 2000#5.0"
          path="sourceComponentId/executionEnvironment"
          required="false" />
     <property name="instanceId" //Comment: Value is business object
   verb+business object name+#+app name+ business object identifier 
           path="sourceComponentId/instanceId"
           required="false"
     <property name="location"   //Comment: The value of this is the 
 server name...example is "WQMI"
           path="sourceComponentId/location"
           required="true"/>
      <property name="locationType" //Comment specifies the format and
  meaning of the location
           path="sourceComponentId/locationType"
           required="true"
           defaultValue="Hostname"/> 
      <property name="subComponent"  //Comment:further distinction of the
  logical component-in this case the value is the name of the business 
  object 
           path="sourceComponentId/subComponent"
           required="true"/>
      <property name="componentType"      //Comment: well-defined name used
  to characterize all instances of this component
           path="sourceComponentId/componentType"
           required="true"
           defaultValue="ADAPTER"/>
      <property name="situation" //Comment: Defines the type of 
 situation that caused the event to be reported
           path="situation"
           required="true"/>
     <property name="categoryName"    //Comment: Specifies the type
  of situation for the event
          path="situation/categoryName"
          required="true"
          permittedValue="CreateSituation"
          permittedValue="DestroySituation"
          permittedValue="OtherSituation" />
     <property name="situationType"    //Comment: Specifies the type 
 of situation and disposition of the event
          path="situation/situationType"
          required="true"
     <property name="reasoningScope" //Comment: Specifies the scope 
 of the impact of the event
          path="situation/situationType/reasoningScope"
          required="true"
          permittedValue="INTERNAL"
          permittedValue="EXTERNAL"/>
     <property name="successDisposition" //Comment: Specifies the
  success of event 
          path="situation/situationType/successDisposition"
          required="true"
          permittedValue="SUCCESSFUL"
          permittedValue="UNSUCCESSFUL" />
     <extendedDataElements name="Employee" //Comment: name of business
  object itself
              type="noValue" 
              <children name="EmployeeId" 
                   type="string"/>  //Comment: type is one of the
  permitted values within Common Event Infrastructure documentation
              <children name="EmployeeAddress"
                   type="noValue"/>
                      <children name="EmployeeId"
                          type="string"/>
                       - 
                       -
                       -
     </extendedDataElements
 </eventDefinition> 
 

Copyright IBM Corp. 1997, 2004