Business event format
You can format the business event based on a standard format or a custom format. The format is specified in the business event dispatch adapter specification.
Business event processing for the z/TPF system provides the JavaScript Object Notation (JSON) format, the XML format, the Common Base Event format, and the raw binary format (no format) as standard formats. You can specify the standard format by using the <afStandardFormat> element in the business event dispatch adapter specification and format the business event without writing any code. To prevent 000010 system errors, the business events standard formats enable time slicing by using the IBMBEV time slice name.
If you want to format your business events into a format other than one of the standard formats, you can specify a user-written event custom data format program to format the event message.
Business event processing builds the event message in contiguous storage and references the event message in the tpf_bev_evtmsg structure. The tpf_bev_evtmsg structure is passed to the event custom data format program specified by the <afEventCustomFormat> element in the business event dispatch adapter specification. The event custom data format program can use z/TPF DFDL APIs and the DFDL schema that maps the event message to create customized XML or JSON documents or any other custom format that the event consumer requires.
After the business event is formatted by using the standard or custom formatting, the formatted event is transmitted to the event consumer by using the transmit type specified by the <asAdapterType> element in the business event dispatch adapter specification.