Overview
Transform is one of the three main phases of an integration workflow. It maps and transforms data from the source system’s schema to match the destination system’s expected format. The Transform phase determines what data fields are sent to the destination and how they are structured. Transform occurs after data extraction and enrichment, processing each datapoint individually before it reaches the Load phase. This phase ensures that data from different systems can be harmonized and delivered in the format required by your destination system.How Transform works
During the Transform phase, RWS Integration processes each datapoint extracted from the source system. You define field mappings that specify how source fields should be transformed and mapped to destination fields. Transform supports three types of mappings: simple field-to-field mapping, fixed values, and business rules. Each mapping type serves different purposes and can be combined within a single integration to handle various transformation needs.Transform mapping types
Simple mapping
Simple mapping directly copies a field value from the source to the destination, optionally renaming it. Use simple mapping when field names differ between systems but the data structure and values remain the same. Examples:-
Rename a simple field:
- From:
name - To:
fullName
namefrom the source becomesfullNamein the destination. - From:
-
Map from enrichment data:
- From:
resources.userDetails.age - To:
age
resources.userDetails, this mapping takes theagevalue found inresources.userDetailsand places it in the top-levelagefield in the destination. - From:
Fixed value
Fixed value mapping assigns a constant value to a destination field, regardless of source data. Use fixed values when you need to populate fields with static information that doesn’t exist in the source system. Example:- Fixed value:
active - To:
status
active to the status field for all records.
Business rule
Business rule mapping applies custom JavaScript logic to transform data. Use business rules when you need calculations, conditional logic, field combinations, or complex data manipulation that simple mappings cannot handle. Example:- Business Rule: Convert meters to feet
- To:
HeightInFeet.