Skip to main content
Managing Business-to-Business (B2B) integrations in Oracle Integration Cloud (OIC) is essential for seamless electronic data interchange (EDI) with trading partners. However, moving B2B artifacts such as the Host Profile, Schemas, Documents, and Trading Partners (including transports, agreements, and related OIC Integrations) between Development, Test, and Production environments presents significant operational friction. FlexDeploy, a DevOps platform specializing in CI/CD and Release Automation, extends its out-of-the-box Oracle Integration Cloud support to include B2B object types. Whether you are a B2B developer or an administrator, migrating these components manually is time-consuming and error-prone, especially when trading partner identifiers, control numbers, transports, and inbound agreements differ by environment. These challenges include:
  • Discovering the Schemas, Documents, and Trading Partners from an OIC instance or from source control (SCM)
  • Migrating schemas and documents that are already tied to active agreements or integrations
  • Managing trading partner transports, inbound agreements, and outbound agreements as part of deployment
  • Handling environment-specific trading partner identifiers and control numbers
  • Maintaining a repeatable, auditable sequence when promoting B2B changes across instances
This blog explores how to efficiently manage and address these challenges using FlexDeploy. The focus is on migrating OIC B2B objects from a Development instance to a Test instance. FlexDeploy supports sourcing B2B objects from an OIC instance and from SCM, so teams can choose instance-based discovery, or SCM-based discovery. The OIC B2B objects used in our configurations are:
  • Schemas – X12_850_SCHEMA
  • Documents – PO_850_DOCUMENT
  • Trading Partners – ACME_TRADING_PARTNER
Each OIC instance also has a single Host Profile that represents your company identity for B2B exchange. FlexDeploy supports migrating the Host Profile as a one-time setup for a new environment. After that initial setup, day-to-day packages typically include Schemas, Documents, and Trading Partners, which is the flow shown in this blog. As a developer, migrating these B2B object types, especially when changes involve schema updates, document revisions, trading partner identifier overrides, and agreement or transport handling, requires multiple manual steps performed in sequence. Manual processes lack auditability, and with each change these steps need repeating. FlexDeploy provides an automated solution that eliminates manual, error-prone activities, ensuring security, repeatability, and auditability.

Project

Let’s create a project using FlexDeploy blueprints, defining the project type as Oracle Integration Cloud with a package-based configuration for all integration and B2B objects. The project includes technical configurations essential for build and deploy activities. Create OIC Project.png

Workflows

The OIC project incorporates build and deploy workflows. FlexDeploy workflows provide a sequence of steps for the build and deploy processes.

Build

The build workflow involves packaging files for moving the OIC B2B components from the Source Instance to the Target Instance utilizing the packageBuild step. PackageBuild.png During the build, each B2B object is exported according to its artifact format:
  • B2B Host Profile – Exported as a single .json file containing the host company configuration and identifiers for the OIC instance
  • B2B Schema – Exported as a .zip archive containing the schema definition and its associated resources
  • B2B Document – Exported as a .zip archive containing the document definition and its associated resources
  • B2B Trading Partner – Exported as a .zip archive containing the trading partner definition and, when configured, its associated transports and inbound agreements, including related backend integrations
  • To apply environment-specific Trading Partner identifiers and control numbers, use a TradingPartnerIdentifiersPlan.properties file.
  • The createB2BTradingPartnerIdentifiersPlan operation generates a TradingPartnerIdentifiersPlan.properties file from the Trading Partner identifiers and control numbers currently defined in OIC. Update the plan with environment-specific values, store it in source control, and let the deploy workflow clone step check it out for use during deployment.
  • Here are sample details for TradingPartnerIdentifiersPlan.properties:
  • Property placeholders, such as ${{ACME_AS2_IDENTIFIER}}, are resolved from the FlexDeploy workflow or target properties for each environment.
  • Once the build completes, these versioned artifacts provide a consistent deployment package that can be promoted to the target OIC environment.
How the plan file reaches deployment depends on how you build:
  • If you build with SCM, check out the repository during build so TradingPartnerIdentifiersPlan.properties is available. The build operation copies .properties files from the checkout or temp folder into the build artifact. In this case, the plan is already part of the artifact, and no separate clone is required later just to bring in the plan file.
  • If you build from the OIC instance only, the B2B objects are exported from OIC, but the plan file is not included unless you add it. In that case, include a clone step in the deploy workflow to check out the plan file from source control so it is available when packageDeploy runs.

Deploy

In the deploy workflow, the packageDeploy step deploys all selected OIC B2B objects in package order. Additionally, a clone step checks out files from a repository, necessary for various actions during the deploy execution. Image
  • Managing Trading Partner Identifiers: Different instances often require different partner identifiers (for example, AS2 identifiers) and EDI control number starting values. Keep TradingPartnerIdentifiersPlan.properties in source control so FlexDeploy can apply the correct values on the target instance during packageDeploy or importB2BTradingPartner.
  • Configuring Workflow Properties: Trading Partners have environment-specific identifiers and control numbers (for example, AS2 identifiers and EDI control number starting values). These properties are defined in a workflow as target properties, and the OIC plugin applies values based on the execution environment.
WorkFlow.png

Cloud Accounts

The blueprint automatically creates the necessary cloud accounts. In the Integrations section, cloud accounts for OIC DEV are set up, and the same needs to be done for the Test environment. cloudAccount.png

Topology

The OIC blueprint creates the OIC Target Group and associates required targets (environments). For DEV and TEST targets, it associates OIC accounts created earlier. Property values for DEV and TEST, including any Trading Partner identifier overrides, are entered accordingly. TargetPic.png

Discover Objects and Create a Package

Returning to the project, we need to discover all OIC B2B objects from the DEV instance. The File Catalog displays the Host Profile, Schemas, Documents, and Trading Partners alongside other OIC object types, aiding developers in finding all B2B artifacts in one place. When discovering B2B objects:
  • Host Profile: /hostprofiles/<filename>.json
  • Global Schemas: /schemas/<schema_id>
  • Global Documents: /documents/<document_id>
  • Global Trading Partners: /tradingpartners/<tradingpartner_id>
  • Project-scoped Schemas, Documents, and Trading Partners appear under /projects/<project_name>/…
b2b-file-catalog.png Create a package, giving it a descriptive name Create-Package.png For this example, add Schemas, Documents, and Trading Partners in dependency order:
  1. Schemas
  2. Documents
  3. Trading Partners
Including Schemas and Documents explicitly in the package provides clear visibility into the Trading Partner’s dependencies and gives you greater control over promoting changes across environments. Although OIC can create or update associated Documents and Schemas when a Trading Partner is imported, packaging them explicitly makes ownership and deployment dependencies clear. Package-content.png

Key file attributes to review before build

Before building the package, review the following file attributes to ensure the B2B objects are deployed as expected:
  • Overwrite B2B Schema / Document / Trading Partner – replace the object on the target when importing
  • Re-activate associated integrations – for Schemas and Documents already linked to active integrations
Schema_Attribute.png
  • Similarly for Trading Partner Manage Transports / Manage Inbound Agreements – include transports and inbound agreements (with backend integrations) in the Trading Partner export. For Project Trading Partners, deploy associated Integrations first, then deploy the Trading Partner.
  • Deploy Transports / Deploy Inbound Agreements / Deploy Outbound Agreements – control what is applied on the target for Trading Partners
  • Activate Integration / Start Schedules / Update Schedules – apply when inbound agreements bring along backend integrations
Trading_partner_attributes.png

Build and Deploy Package

With the configurations in place, we can now build and deploy the package to Test. b2b execution.png b2b files.png

Conclusion

This blog covered the steps to package and deploy OIC B2B objects using FlexDeploy. By packaging Schemas, Documents, and Trading Partners together, FlexDeploy provides a structured and repeatable approach for promoting B2B configurations across environments. With FlexDeploy, you can simplify B2B migrations, reduce manual effort, and move your OIC B2B configurations between environments with confidence and ease.