|
The Data ModelThe Data Model is the structure of records into which extracted data are stored. It contains the names and types of the fields in a record and in its detail tables. A detail table is a field that contains a record set instead of a single value. The Data Model is shown in the Data Model pane, filled with data from the current record. The Data Model is not related to the type of data source: whether it is XML, CSV, PDF, Text or a database does not matter. The Data Model is a new structure, designed to contain only the required data. About recordsA record is a block of information that may be merged with a template to generate a single document (invoice, email, web page...) for a single recipient. It is part of the record set that is generated by a data mapping configuration. Creating a Data ModelA Data Model is created automatically within each data mapping configuration, but it is empty at the start. To fill it you could use another Data Model (see Importing/exporting a Data Model) or start creating a data mapping workflow (see Data mapping workflow). To learn how to add and edit fields, see Fields. Importing/exporting a Data ModelTo use a Data Model in another data mapping configuration, or to use it in a Designer template without a data mapping configuration, you have to export that Data Model and import it into a data mapping configuration or template. When you import a Data Model, it appears in the Data Model pane where you can see all the fields and their types.
Editing the Data ModelEmpty fields and detail tables, added via the Data Model pane, can be edited (renamed, deleted etc.) via the Data Model pane, using the contextual menu that opens when you right-click on a field. Fields in a Data Model that are actually used in the extraction workflow cannot be edited via the Data Model pane. They are related to a step in the extraction workflow and are edited via the Step properties pane instead. To learn how to edit fields and change their order, see Fields. Using the Data ModelThe Data Model is what enables you to create personalized templates in the Designer module. The Data Model is reusable, meaning that it can be shared amongst different template layouts and output types. In Workflow, when a data mapping configuration is used to extract data from a data source (see Data mapping configurations), the extracted data is stored in a record set that is structured according to the Data Model. About adding fields and data via WorkflowThe Data Model is not extensible outside of the DataMapper. When it is used in Workflow - as part of a data mapping configuration - the contents of its fields can be updated but not its structure. ExtraData fieldYou an add empty fields in advance to provide space in the Data Model for Workflow to store data. For convenience, one field called ExtraData is automatically created at every level of each data record. That means the record itself gets an ExtraData field, and each detail table also gets one. Workflow processData can be added to the Data Model in a PReS Connect Workflow process as follows:
Many of these actions can also be performed using REST calls.
Please refer to PReS Connect Workflow documentation for more information about the plugins involved. |
|