Table of Contents

Search

  1. Preface
  2. Components
  3. API collections
  4. Business services
  5. File listeners
  6. Fixed-width file formats
  7. Hierarchical mappers
  8. Hierarchical schemas
  9. Industry data service customizer
  10. Intelligent structure models
  11. Refining intelligent structure models
  12. Mapplets
  13. Saved queries
  14. Shared sequences
  15. User-defined functions

Components

Components

Group statement

Group statement

A Group statement links a complex source element to a complex target element. You can nest other statement types as children of the Group statement.
You can use a Group statement to provide a common context for all the child statements to pass or fail simultaneously. You can also use a Group statement to help you organize or simplify other statements.
For example, you want to map an Employee parent element in the source schema to a Worker parent element in the target schema where both parent elements contain nested child elements such as FirstName and LastName. You can create a Group statement to map the Employee parent element to the Worker parent element, and you can create nested Map statements to map the child elements of the Employee parent element to the child elements of the Worker parent element.
The following image shows the how the elements are mapped in a hierarchical mapper:
A hierarchical mapper maps an Employee source schema to a Worker target schema. The source schema contains an Employee parent element with id, FirstName, LastName, Role, and StartDate child elements. The target schema contains a Worker parent element with FirstName, LastName, FullName, Id, and YearsOfService child elements.
The following image shows the Group statement and the nested Map statements:
The statements include a Group statement with nested Map statements. The Group statement maps the Employee element to the Worker element. The Map statements map the Id, FirstName, LastName elements in the source schema to the elements with the same name in the target schema. The Map statements also map the StartDate element in the source schema to the YearsOfService element in the target schema.

0 COMMENTS

We’d like to hear from you!