Extend and tune your flow configuration > Use generic MMDs

Use generic MMDs

In file system integration with a back-end system, Activator supports use of message metadata documents (MMDs) as the interface between it and the back-end. MMDs are XML documents that point to documents on a file system and contain information Activator or a back-end system uses for processing.

For messages received from partners and delivered to integration, Activator generates MMDs for the inbound documents. You must use the file system with message metadata integration delivery option to have Activator generate MMDs for inbound documents.

For outbound messages, your back-end system must generate the MMDs that tell Activator where to pick up the documents to send to partners. The MMDs must be written to a file system integration pickup directory.

For information about setting up file system pickup and deliveries, see File system transport configuration.

Depending on the message protocol your community uses to exchange messages with partners, different rules apply for using MMDs. For most trading protocols, follow the guidelines in this topic. However, if you trade via the ebXML, RosettaNet or web services message protocol, see the chapter or topic for that protocol. The MMDs described here are known as generic MMDs because they can be used in conjunction with most message protocols, except the three noted.

See the following for information about using MMDs with these protocols:

The following topics describe how generic MMDs are used for outbound and inbound messages.

Outbound messages

You must decide what message metadata accompanies outbound payloads. Any arbitrary metadata values can be included. Metadata elements are parsed and added as message attributes to a consumed message. The following is an example:

<Metadata name="MyItem">SomeValue</Metadata>

In this example, an attribute named MyItem with the value SomeValue would be added to the created message.

In addition to arbitrary metadata, there are some minimum requirements:

The following describes elements for a generic MMD for an outbound message. All except RemovePayloadAfterProcessing are required.

Note Use the optional SubjectHeader attribute to set the subject line of outbound messages sent via generic email (SMTP), AS1, AS2, AS3 and Secure File message protocols. For outbound messages, the subject line value can be set by adding SubjectHeader as a message attribute on integration pickup exchanges or adding it to outbound MMDs. Activator sets the attribute and value on inbound email and EDIINT messages.

You can build an MMD based on the example shown here which demonstrates the minimum requirements. The example of generic MMD for outbound message follows:

Inbound messages

Each MMD contains all metadata associated with the document received from the partner. This is similar to how metadata are handled for integration delivery via JMS. Your community must use a file system with message metadata integration delivery option to have Activator generate MMDs for inbound documents.

The following code is an example of a generic MMD generated by Activator for an inbound message:

Related topics