Ensure License Compliance
Check whether you meet the required license compliance standards that are related to order metrics measured by SAP Commerce Cloud for billing purposes.
Context
The default implementation of SAP Commerce Cloud ensures that customer orders are passed on to the OrderService.submitOrder(order) service that is responsible for carrying out the post processing logic including order splitting and sourcing. SAP Commerce Cloud injects additional strategies to this service that calculate order metrics that are used by SAP for billing purposes. The out-of-the-box Accelerator and OCC templates include these strategies.
If you have modified the standard behavior, for example when customizing post processing in your project, you must manually trigger order measurement in your custom code to stay compliant with the SAP Commerce Cloud terms and conditions. If you're unsure whether your orders are measured, enable the following service properties for your environments:
businessmetrics.logging.active=true log4j2.logger.om-measure.level=INFO log4j2.logger.om-measure.name=businessmetrics.src.de.hybris.platform.businessmetrics.clients.LoggingClient
These properties ensure that every order creates a log line similar to the following:
Business metrics: ... -> ...
If you don't see the correct information in your logs, follow the steps: