XML 格式的“启动适配器”元数据

<eventDefinition name="startADAPTER"
       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="sequenceNumber"    //Comment: Source defined number
 for messages to be sent/sorted logically
          required="false"/>
     <property name="version"    //Comment: Version of the event
          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 the application is running
  in...example is "Windows 2000#5.0"
           path="sourceComponentId/executionEnvironment"
           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 
           path="sourceComponentId/subComponent"
           required="true"
           defaultValue="AppSide_Connector.AgentBusinessObjectManager"/>
      <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"
          defaultValue="StartSituation"/>
     <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" />
     <property name="situationQualifier"  //Comment: Specifies the
  situation qualifiers for this event
          path="situation/situationType/situationQualifier"
          required="true"
          permittedValue="START_INITIATED"
          permittedValue="RESTART_INITIATED"
          permittedValue="START_COMPLETED" />
 </eventDefinition> 
 

Copyright IBM Corp. 1997, 2004