## 2 Related Work
### Application Example  
This section details an example of the application of the DCDM architecture in a real environment, explains how the implementation was carried out, and validates the result.  
The company selected for implementing and testing the DCDM architecture was the Mexican Logistics Company Paquetexpress ([[https://www.paquetexpress.com.mx](https://www.paquetexpress.com.mx)]([https://www.paquetexpress.com.mx](https://www.paquetexpress.com.mx)), accessed on 13 June 2023). This was due to the facilities granted because of the existing working relationship. Paquetexpress was founded in 1986 and has over 8000 employees in 20 departments. The main line of business is logistics, and the core of this is the collection, documentation, shipping, and delivery of packages, mainly in Mexico and worldwide. The central administration office is located in Los Mochis, in Ahome, Sinaloa, Mexico.  
In the commercial area, which is of great importance for the company, the following problem is highlighted: how to control and record the agreements and arrangements with customers (discounts, promotions, and rates) at the time they request the services mentioned above, as well as customer follow-up, sales, and executive commissions. Likewise, there was an associated problem concerning how it affects the credit portfolio and accounting of the income of each one of them. Faced with this situation, communication was established with the board of directors in general management, commercial management, administration management, operations, and IT management to propose a solution through the DCDM architecture. The issue was also discussed with the technology architects from the IT department to see the feasibility of implementing the integration architecture presented in this article to alleviate the problems encountered. Thus, approval was obtained.  
As the first step, the work plan for the integration process was defined, establishing Java as the programming language to implement the DCDM architecture. This is one of the most widely used outside the academy in the business applications industry. Afterward, the definition of the software systems to be integrated was established, among which is CRM Salesforce Unlimited Cloud ([[https://www.salesforce.com/](https://www.salesforce.com/)]([https://www.salesforce.com/](https://www.salesforce.com/)), accessed on 28 May 2023) and financial platforms such as Oracle Cloud ERP ([[https://www.oracle.com/erp/](https://www.oracle.com/erp/)]([https://www.oracle.com/erp/](https://www.oracle.com/erp/)), accessed on 28 May 2023), as well as all the POS (Point Of Sale) that includes the online documentation and web services for the B2B (business to business) integration of customers. The solution to the problem of the Mexican Logistics Company Paquetexpress using the  
Figure 7: The DCDM architecture functionality in a sequence diagram.  
DCDM architecture, according to the integration plan, is divided into five steps, each of which is listed below:  
1. Creation of the _Envelope_, _Payload_, and _Messages_ components.
2. Generation of the _Transaction_ (MAP) structure.
3. Generation of the _Agnostic Message_ (_MessageFacade_).  
Loading of the _Payload_ component with _Message_ sheets.
4. Generation of the _Strategy_ component (_StrategyCDDM_) algorithms.  
Generation of the _StrategyDML_ algorithm.
5. Generation of the _StrategyProcess_ algorithm.
6. Generation and publication of the _Agnostic Message_ service through the _AgnosticMessageCDDM_ class.  
The following subsection presents the description and code for each step in implementing the DCDM architecture.