MuleSoft Accelerator for Salesforce Commerce Cloud icon

MuleSoft Accelerator for Salesforce Commerce Cloud

(0 reviews)

Use case 4 - Order status update

Overview

The following use case is covered:

  • Order status update (B2C Commerce <- OMS)

This use case shows you how to update order-status in B2C Commerce with changes that originate in the external OMS.

Order management systems don't all emit events when orders are created or modified. OFBiz does not emit events which means that polling is needed to detect any changes to the status of orders.

On a configurable scheduled basis, poll for status updates in the OMS using an API. Push any status updates (since the last watermark timestamp) to B2C Commerce.

High-level architecture

sfc-b2c-com-order-status-api-led-architecture.png

Workflow

  1. The scheduling service (a common service component) triggers calls to the Orders Process API to retrieve recently modified orders.
  2. Orders Process API retrieves the list of orders updated since the last run from OMS.
  3. For each of the orders in the returned list, update B2C Commerce with the order status retrieved from the backend OMS.

Sequence diagram

sfc-b2c-com-order-status-seq-diagram.png

Systems involved

  • Apache OFBiz OMS
  • B2C Commerce

Setup instructions

Mule projects


Reviews

TypeCustom
OrganizationMulesoft Inc.
Published by
MuleSoft Solutions
Published onJun 25, 2021
Asset overview

Asset versions for 1.5.x

Asset versions
VersionActions
1.5.1