Accelerator B2B Orders Process API - Implementation Template

(0 reviews)

home

This asset is a component of MuleSoft Accelerator for Salesforce OMS, which enables customers to extend and integrate OMS with external business partners and application ecosystems leveraging Anypoint platforms application and B2B Integration capabilities. The solution provides customers with an accelerated jump start to implement EDI messaging and other application integrations around Salesforce OMS.

The solution includes pre-built APIs, connectors, and integration templates that help unlock business-critical data from external systems and guide you in adopting best practices synthesized from thousands of customer implementations. Use these assets as is or extend them to meet your company’s unique needs.


Overview

This integration template implements the Accelerator B2B Orders Process API specification. It supports the following functionalities:

  • Create purchase orders in downstream systems
  • Create payments for a sales order in downstream systems
  • Handles OrderAllocatedEvent, OrderShippedEvent and OrderInvoicedEvent messages
  • Publishes order event messages to Slack channel

Getting started

bulb.png The Getting Started with MuleSoft Accelerators guide provides general information on getting started with the accelerator components. This includes instructions on setting up your local workstation for configuring and deploying the applications.

Once your workstation has been set up and the application template imported into Anypoint Studio, proceed with the Prerequisites section.

Prerequisites

This implementation template has the following requirements:

Please review the use cases described on the MuleSoft Accelerators solution pages for more information about dependencies on other APIs and services.

API dependencies

The following table lists all endpoints used by this API.

API nameEndpointAction
Accelerator Salesforce OMS System APIpost:/purchaseOrdersCreate purchase orders in Salesforce OMS
Accelerator Salesforce OMS System APIpost:/shipmentsCreate shipments for a sales order in Salesforce OMS
Accelerator Salesforce OMS System APIpost:/paymentsCreate payments for a sales order in Salesforce OMS
Accelerator Slack System APIpost:/messagesSend messages to a Slack channel
Accelerator B2B Simulator Process APIpost:/noticesSend an outbound Order notice
B2B Partner Manager Inbound APIpost:/messages/out-src-purchase-order-ack-cimSend Purchase Order Acknowledgement to Partner Manager
B2B Partner Manager Inbound APIpost:/messages/out-src-shipment-notice-cimSend Shipment Notice to Partner Manager
B2B Partner Manager Inbound APIpost:/messages/out-src-invoice-cimSend Invoice Notice to Partner Manager

Anypoint MQ destinations

In addition to the Anypoint MQ client application credentials, the following destinations must be created and made accessible to this API:

  1. accel-b2b-orders-update-queue

The Accelerator B2B Common Resources asset contains a Postman collection, which can be used to create the destinations and client application required for use by accelerator applications.

Deployment

Each Accelerator implementation template in Exchange includes Bash and Windows scripts for building and deploying the APIs to CloudHub. These scripts depend on repositories, global settings, deployment profiles, and associated properties configured in the Maven settings.xml file.

For additional details, please refer to the Application Deployment section of the Getting Started Guide.

Preparation

Ensure the Maven profile CloudHub-DEV has been properly configured in your settings.xml file. In particular, make sure the common properties for your environment have been provided (e.g., Anypoint Platform client ID and secret).

Required property overrides

Many templates can also be run from Anypoint Studio without having to customize the Run/Debug profiles. However, some templates make use of hidden deployment properties to protect sensitive information (e.g., passwords and secret keys). These properties must be supplied to the runtime by updating the configuration profile and adding them as VM arguments. At a minimum, the following properties must be customized to reflect the target deployment environment.

Property NameDescription
api.autodiscoveryIDRequired if using API Manager to secure this API
anypoint-mq.server-urlAnypoint MQ Server Url
anypoint-mq.client-idAnypoint MQ Client Id
anypoint-mq.client-secretAnypoint MQ Client Secret
oms-sys-api.hostHost name of the Salesforce OMS System APIs
slack-sys.hostHost name of the Slack System API
b2b-simulator-prc-api.hostHost name of the B2B Simulator Process API
b2b-partner-manager-inbound-api.hostHostname of the Partner Manager Inbound API
b2b-partner-manager-inbound-api.supplier-idThe Identifier of the Supplier. This is set as "MYTHICAL"
notifications.slack-channel-nameThe name of the slack channel to which the order event messages will be delivered
notifications.b2b-org-host-nameHostname of the Salesforce OMS Org

Testing

Use Advanced Rest Client or Postman to send a request over HTTPS. The template includes a Postman collection in the src/test/resources folder. Update the collection variable(s) after successful import.

Additional resources


Reviews

TypeTemplate
OrganizationMulesoft Inc.
Published by
MuleSoft Solutions
Published onMay 24, 2024
Asset overview

Asset versions for 1.0.x

Asset versions
VersionActions
1.0.8
1.0.7