Data Layer
The Data Layer** module allows non-technical users to map properties from one system to another without writing code in a customer Converter plugin. The Data Layer module provides two ways of mapping data:
- Data Mappers
- Business Rules
Data Mappers
Data mappers are a schema-based mapping solution, where the user must do a one-time configuration of schemas for each system involved in the integration.
The first step in data mapping involves describing your data structure for both source and destination systems. Use the UI feature to describe data as a hierarchy and specify the data type for each property. In the example below, we've created a schema for incoming data from a Weather service that gives temperature in celsius. Suppose we want to send that data to Tandem, but with temperature in Farenheit. We make a schema for Tandem, map the data from one schema to the other, and supply a custom function to do the conversion from C to F.
Once you have created both schemas, click on Data Mappings on the left panel and create a mapping by dragging a line from the source property to the destination property.
To add a custom function, click the New Function button and add some JavaScript code, as shown below.
Business Rules
Business rules are conditional flow tools. They are designed in the Business Rules UI and can be hierarchical. These conditions support logical OR and logical AND operations.