The most important goal of '''Grooper''' is to deliver accurate data to line of business systems that allow the information to be integrated into impactful business decisioning. [https://en.wikipedia.org/wiki/Table_(information) Tables] in [https://en.wikipedia.org/wiki/Database databases] remain, to this day, one of the main vessels by which this information is stored. '''''Data Export''''' is one of the main ways to deliver data collected in Grooper.
The most important goal of '''Grooper''' is to deliver accurate data to line of business systems that allow the information to be integrated into impactful business decisioning. [https://en.wikipedia.org/wiki/Table_(information) Tables] in [https://en.wikipedia.org/wiki/Database databases] remain, to this day, one of the main vessels by which this information is stored. '''''Data Export''''' is one of the main ways to deliver data collected in Grooper.
{|cellspacing=10 cellpadding=5
|-style="text-align:center"
|
'''''Data Export''''' allows us to take a document...
|
...and its extracted data...
|
...and map that data to column locations in a database table.
|-
|valign=top|
[[File:Data-export-about-01.png|border]]
|valign=top|
[[File:Data-export-about-02.png|border]]
|valign=top|
[[File:Data-export-about-03.png|border]]
|}
Revision as of 11:04, 8 October 2021
WIP
This article is a work-in-progress or created as a placeholder for testing purposes. This article is subject to change and/or expansion. It may be incomplete, inaccurate, or stop abruptly.
This tag will be removed upon draft completion.
Data Export is one of the Export Types available when configuring an Export Behavior. It exports extracted document data over a Data Connection, allowing users to export data to a SQL or ODBC compliant database.
About
You may download and import the file below into your own Grooper environment (version 2021). This contains Batches with the example document(s) and a Content Model discussed in this article
[[]]
About
The most important goal of Grooper is to deliver accurate data to line of business systems that allow the information to be integrated into impactful business decisioning. Tables in databases remain, to this day, one of the main vessels by which this information is stored. Data Export is one of the main ways to deliver data collected in Grooper.
Data Export allows us to take a document...
...and its extracted data...
...and map that data to column locations in a database table.
There are three important things to understand when using and configuring Data Export to export data to a database:
The Export activity.
Data Elements
Data Connections
The Export Activity
Grooper'sExport activity is the mechanism by which Grooper-processed document content is delivered to an external storage platform. Export configurations are defined by adding Export Type definitions to Export Behaviors. Data Export is the Export Type designed to export Batch Folder document data collected by the Extract activity to a Microsoft SQL Server or ODBC-compliant database server.
For more information on configuring Export Behaviors, please visit the full Export activity article.
Data Elements
Data Export is the chief delivery device for "collection" elements. Data is collected in Grooper by executing the Extract activity, extracting values from a Batch Folder according to its classified Document Type'sData Model.
A Data Model in Grooper is a digital representation of document data targeted for extraction, defining the data structure for a Content Type in a Content Model. Data Models are objects comprised of Data Element objects, including:
Data Fields used to target single field values on a document.
Data Tables and their child Data Columns used to target tabular data on a document.
Data Sections used to divide a document into sections to simplify extraction logic and/or target repeating sections of extractable Data Elements on a single document.
With Data Models and their child Data Elements configured, Grooper collects values using the Extract activity.
Depending on the Content Type hierarchy in a Content Model and/or Data Element hierarchy in a Data Model, there will be a collection, or "set", of values for varying data scope of a fully extracted Data Model's hierarchy. That may be the full data scope of the Data Model, including any inherited Data Elements inherited from parent Data Models. It may be a narrower scope of Data Elements like a child Data Section comprised of its own child Data Fields.
Understanding this will be important as Data Export has the ability to take full advantage of Grooper's hierarchical data modeling to flatten complex and inherited data structures. Understanding Data Element hierarchy and scope will also be critical when exporting data from a single document to multiple different database tables to ensure the right data exports to the right places.
Data Connections
Data Export uses a configured Data Connection object to establish a link to SQL or ODBC compliant database tables in a database and intelligently populate said tables. Once this connection is established, collected Data Elements can be mapped to corresponding column locations in one or multiple database tables. Much of Data Export's configuration is assigning these data mappings. The Data Connection presents these mappable data endpoints to Grooper as well as allowing data content to flow from Grooper to the database table when the Export activity processes each Batch Folder in a Batch.
Furthermore, not only can Grooper connect to existing databases using a Data Connection, but it can create whole new databases as well as database tables once a connection to the database server is established.
We discuss how to create Data Connections, add a new database from a Data Connection, and add a new database table from a Data Connection in the #Configuring a Data Connection tutorial below.
How To
In the following tutorials, we discuss an an example of how to setup an Export Behavior, using Data Export.
In this example are a couple of different document formats whose data will be collected by a single Content Model. This will help illustrate two key distinctions mentioned above.
The first document (the "Employee Report) will demonstrate the flattening of a data hierarchy.
The second (the "Personnel Information Report") will give us an avenue to export to multiple tables at once.
The example documents have already been classified and their data extracted. Before we get into Data Export configuration specifics, there's a few things we need to understand about "the story so far"
The forms used in this example and how they are formatted.
The Content Model used in this example, its Document Types and how their Data Models represent the data we want to collect.
The extracted index data, which will be exported to a database.
Understanding the Forms
Document 1: Employee Report
The thing to understand about this document is some of its data share a "one-to-many" relationship.
Some of the data is described as "single instance" data. These are individual fields like "Employee Last Name", "Employee First Name" and "Employee ID". For each document, there is only one value for each of these fields. These values are only listed once, and hence only collected once during extraction.
Some of the data, however, is described as "multi-instance" data. The "Earnings" table displays a dynamic amount of rows, for which there may be a varying number of data for its columns ("Code Desc", "MTD", "QTD", "YTD") depending on how many rows are in the table. There are multiple instances of the "YTD" value for the whole table (and therefore the whole document).
The single instance data, as a result of only being listed once on the document, will only be collected once, but needs to be married to each row of information from the table, in one way or another. The "one" "Employee ID" value, for example, pertains to the "many" different table rows.
This document is meant to show how to flatten data structures. While the single instance data is only collected once, it will be reported many times upon exporting to a database table.
Document 2: Personnel Information Report
The second document is essentially one big table of personnel information (name, address, email, phone number and the like).
While we ultimately want to collect data from all rows in this table, there are potentially two sets of information here. Some of it is generic personnel information, but some of it is "personally identifiable information" or PII.
This information should be protected for legal reasons.
As a result, we will export collected data to two database tables (with the assumption that the second table is "protected".)
This document is meant to demonstrate how to export to multiple tables via one Export Behavior.
⚠
DISCLAIMER: The author of this article is not a lawyer.
For educational purposes we divided "Personnel Information" into two sets: "non-PII" and "PII"
• non-PII: Employee ID, Phone Number, E-mail address, IP Address, Gender, ZIP
• PII: First Name, Last Name, SSN, Street Number, Street Name, City, State.
DO NOT TAKE THIS TO MEAN THIS INFORMATION IS OR IS NOT PERSONALLY IDENTIFIABLE INFORMATION.
This division was done purely for educational purposes to demonstrate a concept.
PII gets tricky in the real world. For example, an IP Address would not normally qualify as PII by itself, but could when combined with other personal information. Please consult your own legal department to determine what data you're collecting is PII and should be protected more securely.
The Content Model provided for this tutorial is named "Example Model - Data Export". This Content Model is designed to extract the data for these two different kinds of documents, each represented by its own Document Type.
The Employee Report Document Type
The "Employee Report" Document Type' represents our "Employee Report" document.
This is the one we will use to demonstrate flattening a data structure that shares a one-to-many relationship on the document.
It has its own child Data Model with Data Elements already configured for extraction.
For the individual fields, represented once in the document, there are three corresponding Data Field elements:
"Last Name"
"First Name"
"Employee ID"
For the tabular data, a Data Table named "Earnings" is established, with four Data Column elements, corresponding to the columns on the document:
"Code Desc"
"MTD"
"QTD"
"YTD"
The Personnel Info Report Document Type
The "Personnel Info Report" Document Type represents our "personnel information" documents.
This is the one we will use to demonstrate exporting multiple table structures to multiple databases from a single document.
It too has its own child Data Model with Data Elements already configured for extraction.
The "non-PII" Data Table will extract data from each table row on the document for non-protected personnel information, as described by its child Data Column elements:
"Employee ID"
"Phone Number"
"EMail"
"Gender"
"Zip"
The "PII" Data Table will extract data from each table row on the document for protected personnel information, as described by its child Data Column elements:
"Employee ID"
"First Name"
"Last Name"
"SSN"
"Street Number"
"Street Name"
"City"
"State"
This set-up uses a single table extractor to collect each row on the document, but reports it to two different Data Table objects in Grooper (the "non-PII" Data Table and the "PII" Data Table). This will ultimately allow us to parse data from these columns, and place the PII related information into a separate database.
Before the Database Export activity can send data, it must have data!
It's easy to get in the habit of testing extraction on a Data Field or a Data Model and feel good about the results, but it must be understood that the information displayed when doing so is in memory, or temporary. When testing a Data Export configuration, it's a good idea to ensure extracted data is actually present for document Batch Folders whose data you want to export.
When the Extract activity runs, it executes all extraction logic for the Data Model tied to a Batch Folder's classified Document Type. For each Batch Folder document, it creates "Index Data" and marries it to the Batch Folder via a JSON file called Grooper.DocumentData.json.
A couple of ways to verify its existence are as follows:
Option 1
First, navigate to a document Batch Folder object in the node tree.
Not the Batch, not the root Batch Folder, not a Page object, but specifically a document Batch Folder object.
Here, we have the first Batch Folder in the root folder of our Batch selected.
This is where the extracted index data information lives.
From there, click on the "Index Data" tab.
After doing so you can see the extracted data displayed.
FYI
Were the document classified (the Batch Folder assigned a Document Type), but not successfully extracted (the Extract activity not applied), the data structure would be present, but the fields empty.
At that point the Batch Folder would have the Document Type'sData Model associated to it, but would not have applied its extraction logic to collect values (That's what the Extract activity is for).
Option 2
Another means of verifying is to actually view the file created by the Extract activity and stored in the Grooper repository's file store location.
Again, click on a document Batch Folder object in the node tree.
Click the "Advanced" tab.
Click the "Files" tab.
In the List View panel you should see a file named Grooper.DocumentData.json.
This is the file the Extract activity generates when it processes a Batch Folder. It serializes all the extracted Data Elements' values for the document's Data Model.
When you click on that file, you should see the stored JSON information of the indexed data displayed in the viewer below.
In order for the Data Export to run, it first needs an established connection to a database and subsequent table(s).
Grooper can connect to an existing database and import references to its tables using a Data Connection object. Once connected to the database server, you can even have Grooper create a database AND create tables based on Data Model structures present in Grooper!
In the following tutorial we will cover how to:
Create a new Data Connection object.
Connect to a database server using the Data Connection.
Create a new database from the Data Connection.
Create a database table using the Data Models in our example Content Model.
It is worth noting that this article cannot tell you specifics about permissions in your own environment. The configuration for this article uses Microsoft SQL Server and has given the active Active Directory user full DB Admin privileges to the SQL environment.
Create a Data Connection
New Data Connections are added to the Global Resources folder of the Node Tree.
Right click the Global Resources folder.
Select "Add" then "Data Connection..."
The "Add New Data Connection" window will appear.
Give the new Data Connection a name.
We've named ours "DB Export"
Press "OK" when finished.
This will add the new Data Connection to the Global Resources folder.
Next, we will configure connection settings so that Grooper can interoperate with our SQL server.
Configure Connection Settings
Regardless whether you want to connect to an existing database or create a new one from Grooper, your first step is always the same. You must first connect to a database server.
Grooper can connect to Microsoft SQL servers or any ODBC (Open Database Connectivity) compliant data source. For the purposes of this tutorial, we will connect to a SQL server.
However, you can choose to connect to a SQL server or ODBC server using the Connection Settings property.
Using the dropdown menu, choose either SQL Server or ODBC
Again, we will be connecting to a SQL server. So, SQL Server is selected.
Next, we need to define settings to access the database server. All you really need to do this is the server's name and access rights.
Expand the Connection Settings property.
Using the Server Name property, enter the SQL server name.
I was a little on the lazy side for this article and just connected to the SQL Express instance created for the Grooper repository database on my local machine. This is almost assuredly not what you want to do in a production environment, but it will work for testing purposes.
You will also need access rights to the SQL server. Using this Data Connection object, Grooper is going to act as if it were a user, giving Grooper the capabilities to do things like add and drop tables, run queries, and more. Just like a user needs SQL access credentials, so does Grooper.
If the active Windows user has Active Directory rights to the SQL server, Windows will pass through your credentials. You can leave the User Name and Password blank in that case.
Otherwise, you'll need to enter a User Name and Password to access the database server here.
Go ahead and hit "Save" at this point.
That's it! You're officially connected to the database server now. We can now connect to existing databases, import references to their tables (Keep this in the back of your mind. This will be important later.), create new databases, and new database tables.
If you want to verify your connection, press the "Test Connection" button.
The following message will appear if you are successfully connected to the SQL server.
At this point, you have two options:
Connect to an existing database
Create a new database
If you wanted to connect to an existing database, it's very easy.
Select the Database Name property.
Either type in the database's name or select it from the drop down menu.
FYI: Grooper has to ping the database in order to populate the dropdown list. Depending on the size of your SQL server, it's often quickest to just type in the database name.
However, now that we're connected to the database, you can also create a brand new database!
Create a New Database from the Data Connection
To create a new database, press the "Create Database..." button.
This will bring up the "Create Database" window.
Using the Database Name property, name the database whatever you like.
We named ours "Export_Example_DB"
Press the "Execute" button to create the database.
You will see the newly created database's name populate the Database Name property.
However, as a newly formed, infant database, it has no database tables. You can see, the "Database Tables" panel is empty. Next, we will add some database tables using the data structures of the Data Models in our example Content Model.
FYI
If you connect to the server in Microsoft SQL Management Studio, you can verify the database is created.
See here, the "Export_Example_DB" is added to the list of databases. Through the Data Connection Grooper has a direct connection to this SQL environment to add and alter databases.
Create Database Tables from the Data Connection
We will end up creating three database tables by the end of this section:
A table for the "Employee Report" Document Type's extracted Data Elements with its "one-to-many" related data elements flattened to a single table structure.
A table for the "Personnel Info Report" Document Type's extracted "non-PII" Data Table.
A table for the "Personnel Info Report" Document Type's extracted "PII" Data Table.
Table 1: Employee Report Data
To create a new database table, press the "Create Table..." button.
This will bring up the "Create Table" window.
Database tables are created from Grooper using Data Elements from a Data Model. The Data Model'sData Fields and/or Data Columns will form the columns of the SQL table, housing extracted values from each document folder upon export. First, you must define the Content Type (e.g. a Content Model or one of its Document Types) whose Data Model you want to use to create the database table.
The Content Type property's dropdown menu will present you a mini Node Tree view to select a Content Type from your Content Models folder.
In our case, we will select the "Employee Report" Document Type from our "Example Model - Data Export" Content Model.
Why didn't we choose the parent Content Model? It's all about Data Model hierarchy and scope. We want access to all the Data Elements in the "Employee Report" Document Type'sData Model. If we chose the parent Content Model, we would only have access to its Data Model'sData Elements, which would not include any of the Data Elements we want to export.
Data Elements are passed from parent Data Model to child Data Modelnot the other way around.
Next, you will need to select the data scope in the Content Type'sData Model, using the Data Element Scope property.
This property will present you a drop down to select either the parent Data Model or sub-levels in its Data Element scope, branched by Data Section or Data Table elements.
Choosing a data scope is all about defining which Data Elements are accessible for database table creation (and ultimately data export to the created table).
In our case, we want to choose the "Earnings" Data Table for our scope.
Think back to the notion of the one-to-many relationship. This database table can have a dynamic number of rows and the Data Columns are capable of capturing and reporting back unlimited instances of data, hence multiple rows. The Data Fields within this scope, however, are only capable of capturing and returning a single piece of data.
But, given the nature of hierarchy inheritance, at the "Earnings" Data Table scope, the database table that will be created will make columns not just for the Data Columns of the Data Table, but for each of the Data Fields contained within the Data Model's scope as well (i.e. The "Last Name", "First Name" and "Employee ID" Data Fields).
FYI: Were there Data Fields further up the inheritance tree, say at the base Data Model of the parent Content Model, the database table would also inherit those as well.
In other words, think about what Data Elements you want access to and go down the Data Model's hierarchy to widen the Data Element scope.
The Table Name property will auto-populate a concatenation of the Content Type and Data Element Scope properties string values.
However, you can change this to whatever you want.
Now, you're ready to create the database table. Press the "Execute" button.
Here's where Grooper is doing the hard work for us. Notice in the "Review/Edit SQL Statement" window the SQL Statement required to create our table is already written for us.
However, you can edit this statement, if need be.
For example, at the time of writing this article there was a bug involving the "Employee ID" Data Field. It's Value Type in Grooper is set to Int16. This was not properly converting to a "smallint" SQL data type for the corresponding SQL column. So we added smallint to the SQL Statement after [Employee ID].
Click the "Run SQL Statement" button to create the table.
Upon successfully creating the table, the "Database Tables" panel will have our newly created table listed.
It will initially display with a red dot on the icon. This will change to a green dot when we import this table's reference (more on that later).
The "Table Columns" panel will display the data structure of the table, listing the SQL table's columns, their data types and other information.
The "Data Preview" panel will display data within the table.
Because this table was just created, it will not have any data to display. We haven't exported any data to it yet!
Table 2: Personnel Info Report non-PII Data
For the other two tables, it's mostly a repeat of the same steps, just taking care to select the appropriate Content Type and Data Element scope.
To create the second database table, press the "Create Table..." button.
Select the appropriate Content Type, using the Content Type property.
For this database table, we need access to the "Personnel Info Report" Document Type'sData Model. We have, hence, selected the "Personnel Info Report" Document Type of our example Content Model.
Select the appropriate data scope, using the Data Element Scope property.
This table is going to house all the non-PII related data. So, we have selected the "non-PII" Data Table element.
This will create a database table using only itsData Columns. The "PII" Data Table's columns will be out of scope.
Press "Execute".
Then, press "Run SQL Statement".
Success! The table is now successfully created.
Table 3: Personnel Info Report PII Data
This database table can be created with the exact same steps as described above with just one key difference:
The Data Element Scope will be set to the "PII" Data Tablenot the "non-PII" Data Table.
2. We now have our third database table added to the SQL database.
We just have one last thing to do before we export data to these newly created database tables: import their references.
Import Table References
Before we can export data to these newly created tables, we must import their table references. This part is critical in order for Grooper to interact with a database table, whether to export data using Data Export or perform a Database Lookup operation. Importing the table references will give Grooper an object it can reference when mapping data between Grooper and the database table, ultimately allowing for data to flow from extracted Batch Folders to the database table.
Importing a table reference is as simple as a click of a button.
Select the database table you wish to import from the Data Connection's "Database Tables" panel.
We're starting with the "Employee_Report_Earnings" table.
Press the "Import Table Reference" button.
You will see the following message upon successful import.
This will create a Database Table object, as a child of the Data Connection.
We will utilize this object later when we get to configuring our export.
Also, when the database table is imported the red circle on its icon will change to green.
We will also need to import the remaining two table references.
Next, we will use these three table references to export document data over our Data Connection to these SQL database tables.
Data Export is one of the Export Type options when configuring an Export Behavior. Export Behaviors control what document content for a Batch Folder is exported where, according to its classified Document Type. As such, in order to configure a Data Export, you must first configure an Export Behavior for a Content Type (a Content Model or its child Content Categories or Document Types).
In our case, we want to perform two different kinds of export, depending on the document Batch Folder's classified Document Type.
For the "Employee Report" Document Type, we want to export its collected Data Elements to our first database table.
For the "Personnel Info Report" Document Type, we want to export its collected Data Elements (which are collected using an entirely different Data Model and have an entirely different data structure) to our second and third database table.
The basic idea behind Export Behaviors is, based on kind of document you're looking at, you can tell Grooper how you want to export it.
Export Behaviors can be configured in one of two ways:
Using the Behaviors property of a Content Type object
A Content Model
A Content Category
Or, a Document Type
As part of the Export activity's property configuration
When the Export activity processes each Batch Folder it will execute the Export Behaviors, according to their configuration settings.
FYI
In general, users will choose to configure Export Behaviors either on the Content Type object it applies to or local to the Export activity step in a Batch Process.
This may just boil down to personal preference. There is no functional difference between an Export Behavior configured on a Content Type or an Export Behavior configured on an Export Step, upon completing their configuration. In either case, they will accomplish the same goal.
However, it is possible to configure Export Behaviors, in both locations. If you do this, you will need to understand the Export activity's Shared Behavior Mode property options. This will effect if and how two Export Behaviors configured for the same Content Type will execute. Please visit the Export article for more information.
Add an Export Behavior
Option 1: Content Type Export Behaviors
An Export Behavior configuration can be added to any Content Type object (i.e. Content Models, Content Categories, and Document Types) using its Behaviors property. Doing so will control how a Document Type "behaves" upon export.
Select the Content Type whose Export Behavior' you want to configure in the Node Tree.
We will start by configuring an Export Behavior for the "Employee Report" Document Type.
To add an Export Behavior, first select the Behaviors property.
Then,m press the ellipsis button at the end of the property.
This will bring up the Behaviors collection editor window.
Press the "Add" button.
Select Export Behavior.
FYI: Children Content Type objects will inherit export settings from their parent Content Type'sExport Behavior configuration
Also, you can only configure one Export Behavior per Content Type object. However, you can configure an Export Behavior for any Content Type in a Content Model. Functionally, this is how you add multiple Export Behaviors for a single Content Model.
For example, our two Document Types need different Export Behavior configurations. We would 'not want to configure their parent Content Model'sExport Behavior. That would apply that single export configuration to allDocument Types. That's not going to work for us. The "Employee Report" documents' data need to go to one location and the "Personnel Info Report" documents' data need to go somewhere entirely different. Instead, we will end up configuring the Behaviors property of both Document Types individually. Thus, we end up with two Export Behavior configurations for the Content Model.
You will see the Export Behavior added to the Behaviors list.
Selecting it, you can now add one or more Export Definitions with the Export Definitions property.
Next, we will add a Data Export definition.
Option 2: Export Activity Export Behaviors
Export Behaviors can also be configured as part of the Export activity's configuration. These are called "local" Export Behaviors. They are local to the Export activity step in the Batch Process.
For example, here we have a working Batch Process selected in the Node Tree.
This is a simple Batch Process that could have been used to process these documents, recognizing their text, classifying the document Batch Folders, and extracting data from them. The last step in this Batch Process is an Export step.
Select the Export step of the Batch Process.
To add an Export Behavior, select the Export Behaviors property.
Then, press the ellipsis button at the end of the property.
This will bring up the Export Behaviors collection editor window.
Press the "Add" button to add a new Export Behavior
An Export Behavior will be added to the list.
With the Export Behavior selected you must define which Content Type the behavior applies to using the Content Type property.
Note in both cases, a Content Type is involved in configuring Export Behaviors.
Whether local to the Export activity or as part of a Content Model's configuration, Grooper needs to know what to do upon export, given a certain Content Type. Once Grooper knows what kind of document it's looking at, we can then inform it what to do in terms of exporting its document content.
Using the dropdown menu, select which Content Type scope should utilize the Export Behavior by selecting either a top-level parent Content Model or one of its child Content Categories or Document Types.
Keep in mind you can only select a single Content Type here. You can only configure one Export Behavior per Content Type object.
Again, children Content Type objects will inherit export settings from their parent Content Type'sExport Behavior configuration. However, multiple Export Behaviors may be added locally to the Export activity.
For example, since both our Document Type needed a unique Export Behavior configuration, we would add one Export Behavior to the list for each one.
Here, we have selected the "Employee Report" Document Type. This Export Behavior would then only apply to Batch Folders of this Document Type.
Once a Content Type is selected, you can add one more more Export Definitions with the Export Definitions property.
We will discuss adding a Data Export definition next.
Add an Export Definition
We will choose to configure the Export Behavior using "Option 1", adding it to the "Employee Report" Document Type
We will add the 'Export Behavior to its set of Behaviors properties.
Regardless if you choose to configure the Export Behavior on a Content Type object, or if you configure it local to to Export activity's configuration, your next step is adding an Export Definition.
Once you've added an Export Behavior, select the Export Definitions property.
To add an Export Definition, press the ellipsis button at the end of the property.
This will bring up an Export Definition list editor to add one or more Export Types.
Next, we will add a Data Export definition to the list.
Add a Data Export
Export Definitions functionally determine three things:
Location - Where the document content ends up upon export. In other words, the storage platform you're exporting to.
Content - What document content is exported: image content, full text content, and/or extracted data content.
Format - What format the exported content takes, such as a PDF file or XML data file.
Export Definitions do this by adding one or more Export Type configurations to the definition list. The Export Type you choose determines how you want to export content to which platform. In our case, we want to use a Data Connection to export extracted document data ("Content") to a database table ("Location" and "Format"). We will add a Data Export to the definition list.
To do this, press the "Add" button.
Choose Data Export from the list.
This will add an unconfigured Data Export to the Export Definitions list.
For all Data Export configurations, the first step is configuring the Connection property.
Use the dropdown menu to select a Data Connection from the node tree.
This will provide Grooper with the information required to connect to the external database upon export.
With the Data Connection established, the next step is to map data from Grooper to a table in the database.
Next, we will review using the Table Mappings property to map Data Elements in a Data Model to corresponding column locations in a database table.
Table Mappings Example 1: Flattening a Data Model
We will continue configuring our "Employee Report" Document Type'sData Export first. For this document, we have to deal with a "one-to-many" relationship between data that exists once on the document, and the dynamic data in the multiple rows in the "Earnings" table.
For this example, we will flatten the Data Model's element hierarchy.
Table Mappings Example 2: Exporting to Multiple Database Tables