Creating and Maintaining Business Object Documents (BODs)

Use the following process to build or change a Business Object Document (BOD) XML via metadata defined in system forms. BOD elements are often mapped to objects in system tables or collections, although certain elements may be specified as literals or calculated values that are not tied to any table or collection.

In the Replication Documents form, you specify the general structure and conventions used by the BOD. Specify when the BOD is used through either the Replication Document Outbound Cross References form or the Replication Document Inbound Cross References. Then use the Replication Document Elements and Replication Document Attributes forms to define the elements (BOD tags) and the attributes of those elements, and map the elements and attributes as required.

BOD Structure and Usage

  1. On the Replication Documents form, specify the document name, used only for internal reference. The actual BOD XML document name is specified by the BOD Noun and BOD Verb fields in the Primary Tab.
  2. Enter information about the IDO used to build the BOD. If no existing IDO collection fits the purpose of the BOD, you can define a new IDO collection or custom load method specifically for the BOD.
  3. Click either the Inbound Cross-Refs or Outbound Cross-Refs button to go to one of the following forms, where you can specify how the BOD is used:

BOD Header

NOTE: This section applies only to BODs intended for applications that use the standard Infor BOD format. Generic BOD XMLs intended for other applications do not require these BOD header elements.
  1. On the Replication Documents form, click the Add BOD Headers Element button to automatically generate the header elements required for any BOD.
  2. The Replication Document Elements form displays with the appropriate header elements added.

    The BOD_Name/ApplicationArea/BODID element contains the NID in this format:

    NIDID(DerBODID)?BODNOUN()&verb=BODVERB()

    In most cases, you do not need to edit this element. However, if you want the NID's location value populated, change the NIDID macro to LNIDID. (Click here for more information about these macros.)

    When you create the associated IDO or Custom Load Method used to populate the BOD, you must include a property named DerBODID that contains the key value for the BOD. For example, for the PurchaseOrder BOD, you must define a DerBODID property that contains the purchase order number.

    Save the records and close the form.

  3. The Attributes form displays with the appropriate attributes automatically defined for the header elements. Save the records and close this form.
  4. If this BOD is used to publish deleted data, change the ValueExpresson of the ActionCode attribute on the ActionExpression element of the header from "Replace" to "Change".

BOD Body

  1. On the Replication Documents form, click the Elements button to open the Replication Document Elements form again. This time you will be adding elements to the body of the BOD, to produce all the necessary tags for the BOD.
  2. For each element (tag), set up the following:
  3. If any element includes an attribute - that is, the BOD tag looks like this:
    <element attribute=xxx>
    		
    then click the Attributes button to display the Replication Document Attributes form, filtered for the current element. (Notice that the element's sequence number is displayed for reference.)

    Specify the following for the attribute:

Tips for Constructing the Body

Next Step

After you define the replication document mappings for a BOD, you must set up replication for it. See Replicating Data as BODs to Other Infor BOD-Enabled Applications. Or, if you are defining generic (non-Infor) BOD XML documents, see Replicating Data to External Systems That Do Not Use Infor BOD Formatted XMLs.

If you update a replication document for a BOD that has been replicated previously, you should restart the ReplQListener service to clear the cache of old metadata for the BOD.

Generating Replication Document Scripts

Use the Repl Doc Script Generator form if you want to generate a replication document script and then, optionally, check the script into a source code control system. This allows you to include your custom replication document information in system upgrades.


Related Topics

Deleting BODs

Viewing Received and Sent BODs

Replicating Data as BODs to Other BOD-Enabled Applications

Replicating Data to External Systems That Do Not Use Infor BOD Formatted XMLs

Adding a Collection of Elements from a SQL Table or IDO to a BOD

Behind the Scenes: How the System Generates a BOD