公共基本事件格式
公共基本事件格式基于公共基本事件规范版本 1.0.1,这是基于 XML 的格式,使用 CICS ® 事件数据的公共基本事件模式中的 xs:any 槽。 该格式可以由任何能够识别公共基本事件 XML 格式的使用者使用。
您可以使用事件绑定编辑器指定要使用的事件格式。 有关适配器属性和受支持格式的更多信息,请参阅 CICS Explorer 产品文档中的 "指定 EP 适配器和分派器" 信息。
此代码片段显示在 事件绑定编辑器中选择公共基本事件格式时发出的格式。 花括号 {}
中此部分后面的字段是派生自捕获事件或捕获事件所在的 CICS 区域的字段。
<?xml version="1.0"?>
<cbe:CommonBaseEvent xmlns:cbe="http://www.ibm.com/AC/commonbaseevent1_0_1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
version="1.0.1"
creationTime="{yyyy-mm-ddThh:mm:ssZ}">
<cbe:sourceComponentId component="IBM CICS TS#5.4.0"
componentIdType="ProductName" executionEnvironment="IBM z/OS"
instanceId="{NETQUAL}.{APPLID}" location="{MVSSYSTEM}"
locationType="Hostname" subComponent="CICS EP"
componentType="http://www.ibm.com/xmlns/prod/cics/eventprocessing" />
<cbe:situation categoryName="OtherSituation">
<cbe:situationType xsi:type="OtherSituation"
reasoningScope="EXTERNAL">
<CICSApplicationEvent/>
</cbe:situationType>
</cbe:situation>
<cics:event
xmlns:cics="http://www.ibm.com/xmlns/prod/cics/events/CBE">
<cics:context-info>
<cics:eventname>{BusinessEvent}</cics:eventname>
<cics:usertag>{User Tag}</cics:usertag>
<cics:networkapplid>{NETQUAL}.{APPLID}</cics:networkapplid>
<cics:timestamp>yyyy-mm-ddThh:mm:ss.mmmZ</cics:timestamp> 1
<cics:bindingname>{Event Binding Name}</cics:bindingname>
<cics:capturespecname>{Capture Spec Name}</cics:capturespecname>
<cics:UOWid>{network unit of work id}</cics:UOWid>
</cics:context-info>
<cics:payload-data>
<data:payload xmlns:data="http://www.ibm.com/prod/cics/{User Tag}/{BusinessEvent}">
<data:customer>IBM</data:customer>
<data:orderValue>10250</data:orderValue>
<data:orderReference>QWERTY098765</data:orderReference>
</data:payload>
</cics:payload-data>
</cics:event>
</cbe:CommonBaseEvent>
The xs:any element in a CICS common base event event format contains both a static part (<cics:event> tag), which is the same for every CICS common base event format, and a dynamic part (<data:payload> tag), which is different for each event specification. 静态和动态部分由不同的 XML 模式描述。
静态 XML 模式随 CICS 一起安装在以下位置: /usr/lpp/cicsts/cicsts54 /schemas/eventprocessing/eventformats/cics_cbe_static.xsd。 您可以从 " 事件绑定编辑器" 中的 适配器 选项卡导出 CICS 公共基本事件格式的动态模式; 请参阅 在 CICS Explorer 产品文档中指定 EP 适配器和分派器信息 以获取更多详细信息。
The CICS event context and payload data are contained in the <cics:context-info> and <cics:payload-data> child elements of the <cics:event> element. 动态模式提供有效内容数据的映射。
向无法识别公共基本事件格式的事件使用者 (例如, IBM WebSphere® Message Broker) 发送 CICS 公共基本事件格式事件时,请将静态 XML 模式用于公共基本事件格式。 有关更多信息,请参阅 公共基本事件 XML 模式。