TIBCO Adapter SDK C++ Reference
MBusinessDocument
Class Hierarchy | Enumerations | C++ Classes and Methods | Members | Methods
Allow applications to describe a business event using a standard format.
Remarks
When an application sends a message to another, it could send pure data. In many cases, however, it is useful to include context for the data that allow the receiving and sending application to share information that is not necessarily part of the data.

Typically, the application itself defines the context, however, that means that each sending and receiving application have to agree on the format for the context. This class encapsulates a specification of such a context, which can be used to provide uniformity, for example in integration scenarios where several adapters work together.

You must import BusinessDocument.dat in the repository. If you use the MBusinessDocument() constructor and if the repository does not contain the MBusinessDocument class definition at /tibco/public/class/ae/baseDocument/MBusinessDocument, the SDK throws an exception.

This class allows applications to include information about the structure and other aspects of the data that is sent. The MAdvisoryDocument class is most useful for debugging and performance analysis purposes. This class can have data sections that are accessible with its get() and set() methods.

Subclassing MBusinessDocument
A BaseBusinessDocument TIBCO Repository object is included in TIBCO Repository. When applications create an MBusinessDocument, they often want to include attributes not defined in this MBusinessDocument class. To do so, they:

  • Define a TIBCO Repository object that is one level below the BaseBusinessDocument class and add the desired attributes.

  • Get and set the attribute(s) using the MBusinessDocument::get() and MBusinessDocument::set() methods.
Declaration
class MBusinessDocument;
Class Hierarchy
MBusinessDocument
File
MBusinessDocument.h
Links
Copyright (c) 2010 TIBCO Software Inc. All rights reserved.