Use the JSON Document Standard
You can create customized document definitions using the JSON document standard in B2B for Oracle Integration.
Note:
You must first create a JSON schema before you can create a document definition that uses the JSON standard. See Create a New B2B Schema.- Create a document.
Note:
The JSON document standard is supported in both B2B trading partner mode and B2B standalone mode.- To create a document in a project in B2B trading partner mode.
- In the navigation pane, click Projects.
- Click the project in which to create the document.
- Click B2B
.
- In the Documents section, click Add.
- To create a document in B2B standalone mode.
- In the navigation pane, click B2B, then Documents.
- On the Documents page, click Create.
- To create a document in a project in B2B trading partner mode.
- In the Create document pane, enter the following details.
Element Description Name Enter a document name. Identifier This field is automatically populated with the document name. You can manually change this value. Description Enter an optional description of the customization details for this document. Use a shared document Select to use a shared document. Selecting this option enables a Shared document list to be displayed for you to select the shared document to use. Shared documents only available in a different project are displayed. Documents created in a standalone environment (that is, outside a project) are not available for selection.
After creation, an Override label appears below the document name in the Documents section to indicate that it is shared.
To understand how shared documents work, see What's Supported in Projects for B2B.
Note:
This option is only available within projects in B2B trading partner mode. It is not supported in B2B standalone mode.Available to other projects Select to make this document available for use in other projects.
After creation, a Shared label appears below the document name in the Documents section to indicate that it is available for use in other projects.
Note:
Before you make the document available to other projects, ensure that the document uses a shared schema. For details on how to create a shared schema, see Create a New B2B Schema.Note:
This option is only available within projects in B2B trading partner mode. It is not supported in B2B standalone mode.Document standard Select JSON from the drop-down list. Document version Manually enter a new value or select an existing value from the drop-down list.
Document type Manually enter a new value or select an existing value from the drop-down list.
Document schema Select an existing JSON schema. If a JSON schema does not exist, you cannot create a document definition. See Create a New B2B Schema.
- Click Create.
The document details page for your new B2B document using the JSON standard is displayed.
- If you want to use a different document schema, select an existing schema from the Document schema drop-down list or click Edit to upload a new schema file.
You can also define document properties for the schema.
- In the Document property section, define document properties for the schema.
- Expand Business identifiers, and add at least one identifier (primary). You can also add a second and third identifier to associate with this document. The business identifier names and expressions enable filtering by the identifiers on the Instances page when this document is sent or received.
- In the Expression field, enter a business identifier expression path.
For example, if you want to send the
claimIdfor the following JSON payload, the expression will be$.insuranceClaim.claimId.
- Expand Identification, and note that the Identification type field shows a default value JSON that can't be changed. Specify a JSONPath identification expression and value.
For this example, in the Identification expression (JSONPath) field, the JSONPath expression is specified as
$.DocumentNameand in the Identification value field, the value is specified asinsuranceClaim.
- Expand Correlation, and select either Correlation from or Correlation to from the Correlation type drop-down list. Enter an XPath name, and then enter an XPath expression. These values enable you to correlate related documents in business transactions.
You can only select one option: Correlation from or Correlation to.
- The Correlation from XPath retrieves the value from the payload to initiate the correlation.
- The Correlation to XPath retrieves the value from the payload for correlation.

- Click Save.
While defining inbound and outbound agreements, you can use a document created with the JSON standard to identify and process inbound and outbound JSON payloads.