Data Flow Overview
What happens to an item as it moves from a source system through the Data Hub to a target system?
- Data is loaded into the Data Hub through an inbound extension (for example, the CSV inbound extension). The extension converts the data into a standardized format and passes it to the exposed Spring Integration inbound channel. At this point, the Data Hub converts the data from the inbound channel into raw items and makes them available for further processing.
- The raw item begins the Composition phase by being copied. The copy of the raw item now goes through Grouping. During Grouping, the raw items are arranged by canonicalItemType or by primaryKey. If custom Grouping handlers exist, the raw items may also be arranged in other ways.
- Composition is not yet complete. After Grouping, the Grouped, raw items go to Composition. Composition applies rules (default Composition handlers) that change the Grouped, raw item as follows:
- If raw data is tagged to be localized, the isoCode value is combined with the raw attribute value. Then a single localized attribute appears in the canonical model.
- Multiple values combine into a set. Sets occur when a given attribute on a type is a collection of values as opposed to a single value. Sets often occur in one-to-many relationships.
- An attribute has a single value that cannot be localized. It also cannot be a member of a set. See the following transformation rules for these types of attributes:
- Populating the attribute item based on matching attribute names between RawItem type and CanonicalItem type.
- Transformation is used when the raw attribute name does not match the canonical attribute name. To implement this logic, populate the <expression></expression> tag in the XML file with the name of the raw attribute that supplies the desired value.
- Use a SpEL transformation if a basic reference attribute does not suffice. The SpEL expression is specified in the <expression spel="true"></expression> tag. A SpEL expression can be used to construct a value made up of 0 or more reference attributes, as well as any other valid SpEL expression.
- You can add custom Composition handlers that further manipulate the Grouped raw fragments. After all of the handlers are done, the Grouped raw item has been composed into a canonical item.
- The canonical item is published to a target system. During publication, the publication phase uses the target.xml file to transform the canonical data into target compatible output. Then the target system adapter accepts the target item from the publication process and passes it to the target system.