主权项 |
1. A method in a computer system, the method comprising:
defining, using a processor of the computer system, a common data model, wherein
the common data model comprises a hierarchical data structure,the hierarchical data structure is configured to represent an order class,the hierarchical data structure comprises
a plurality of common data elements, anda plurality of custom data elements,the common data elements are common to a plurality of order types utilized by a plurality of applications,each of the custom data elements is configured to define application-specific data fields for at least one application of the applications,the order class is configured to identify a plurality of relationships of an order with a plurality of entities related to the order,a definition of the order class is represented as an XML schema, andthe defining comprises, for each custom data element of the custom data elements,
retrieving a data definition schema for the order class, wherein
the data definition schema comprises the each custom data element, andthe each custom data element is of a custom data type,adding the each custom data element to the order class by
retrieving a custom data schema for the custom data type,locating a tag in the custom data schema relating to the custom data type, andadding the custom data element to the tag; defining an order line sub-class using the processor, wherein
the order line sub-class is derived from the order class,the order line sub-class represents an order line within the order,the order line sub-class comprises
a set of data elements from the order class, anda set of additional data elements, and receiving, at the computer system, a collection of order data from a source application, wherein
the collection of order data is organized in a source data format of the source application, andthe collection of order data represents the order; performing a first transformation operation on the collection of order data using the common data model, wherein
the first transformation operation is performed by the processor,the first data transformation operation comprises
transforming the collection of order data from a source data format of the source application into a common data format,the transforming the collection of order data comprises
transforming all data elements in the order line sub-class of the order into the common data format,the common data format is defined based on the order class, andthe common data format comprises the plurality of common data elements; performing a second transformation operation on the collection of order data, wherein
the second transformation operation is performed by the processor, andthe second transformation operation transforms the collection of order data from the common data format to a destination data format of a destination application; and sending the collection of order data in the destination data format to the destination application.
|