2022:Import or Export Grooper Objects

From Grooper Wiki

How can you share Grooper objects, like Content Models, Batch Processes, Batches and more, with other Grooper users?

About

Grooper allows you to export Grooper objects from a Grooper Repository as a zip archive file. You can then bring in those objects into a Grooper Repository by importing the zip file.

The process is straightforward, but there are a few things to watch out for.

FYI Additionally you can "publish" Projects from one Grooper Repository to another. This allows Grooper users connected to multiple Grooper environments to copy objects directly from one environment to another without the need to export and import a zip file.

This will be covered in the #Publish Projects to a Connected Repository section of this article.

How To

When exporting/importing Grooper objects, you will do one of three things.

You will either:

  • Export/import Batches
  • Export/import full Projects
  • Export/import single objects inside a Project

In the following tutorial, we're going to export several objects from a "testing" Grooper Repository and import them into a "production" Grooper Repository.

Export Grooper Objects to a Zip File

Exporting Batches - Single Batches


First, we're going to export a single Batch from a Grooper Repository. You can export either "Production" or "Test" Batches.

  1. Right-click the Batch you want to export.
  2. Select Share
  3. Select Export to Zip Archive...


  1. This will bring up the Share • Export to ZIP Archive configuration window.
  2. Use the Filename property to define the storage path as well as the zip file's name.
  3. Press the Execute button to export the Batch, saving it to a zip in the selected location.


FYI If you select the Filename property and press the ellipsis button on the end, this will bring up a folder navigator to select an export path and name the file.

Exporting Batches - Multiple Batches

What if you want to export more than one Batch? Do you have to export individual zip files for every single Batch? You could do this, but there's another way. Simply put all the Batches you want to export in a folder. Then, export the folder.

When you export a folder to a zip file, all its contents are exported as well.

  1. I want to export both these Batches.
  2. By placing them in a folder, I can do so without exporting each one individually.
  3. All of a folder's contents will be exported when exporting to a zip archive.
    • Or in our case, both Batches

Exporting Full Projects

You can also export full Projects to zip files. All its contents will be exported as well. Generally speaking, the Project contains all the processing resources necessary (the Content Model, Batch Process and other Grooper objects) to execute a Batch Process and process one particular document set. However, sometimes, you will reference resources in other Projects using one or more Referenced Projects. In this case, you will need to ensure all referenced Projects are exported at the same time to ensure the zip file can be imported down the road.

Exporting Full Projects - Single Projects Without References


We'll start with the simpler situation, exporting a Project that has no Referenced Projects.

  1. We want to export this Project.
  2. All of its contents will be exported as well.
    • FYI: This includes any subfolders and/or children of its contents.
  3. According to the Referenced Projects property, this Project makes no references to other Projects.


This makes our job easy. We can export the Project as a single item.

  1. Right-click the Project you want to export.
  2. Select Share
  3. Select Export to Zip Archive...
  4. In the Share &bull: Export to Zip Archive window, use the Filename property to select the zip file's path and name.
  5. Press the Execute button.

Exporting Projects - Exporting Multiple Projects and Projects With References

If you want to export multiple Projects, you'll need to place them in a folder, and export the folder (as we did when we exported multiple Batches in the previous tab of this article).

The same advice is true for Projects with references to other Projects.


  1. Say we want to reference this Project named "Invoice".
  2. According to the Referenced Projects property, this Project makes references to two other Projects.
  3. An extractor from the "Essentials" Project is used in this Content Model's configuration.
  4. An extractor from the "Shared Resources" Project is used in the configuration of this Data Model's Data Elements.


To properlyexport the "Invoices" Project, the "Essentials" Project and the "Shared Resources" Project must be exported along with it. We will export all three projects by placing them in a folder and exporting the folder as a zip file.


FYI The Analyze References button can be useful when evaluating a Project's references.

Pressing this button will show you the Node Tree path for every object used by referenced projects.

Hint: The referenced Project's name will be at the beginning of the path. The referenced object's name will be at the end the path.

• For example the "Invoices" Project makes use of the "Words" extractor (the referenced object which is at the end of the path) in the "Essentials" Project (the referenced Project which is at the beginning of the path)


To properly export the "Invoices" Project, it and all its referenced Projects should be placed in a folder. Then, the folder should be exported.

  1. All three Projects have been placed in a folder.
  2. Exporting the folder will export all the Projects contained, ensuring all references are preserved.


If you do export a Project without exporting its referenced Projects, you will get an error upon attempting to import the zip file.


Be aware if you have a complicated web of references, you may need to check the referenced Project to see if it references any Projects itself.
  1. Imagine we want to export this Project named "Human Resources"
  2. According to the Referenced Projects property, this Project references the "Invoices" Project.
  3. That means, we need to not only included the "Invoices" Project in the export, but the "Essentials" and "Shared Resources" Project it references as well.
    • In other words, we'd need to export a folder with all four Projects contained to properly preserve the references throughout the various Projects.

Exporting Objects in a Project

You may also export individual objects within a Project. For example, you may want to share a particular profile you've created with another Grooper user or repository.

The process is essentially identical to what we've seen so far. Right-click the object, select export to zip archive, configure the file's path and name.

We're going to export an IP Profile named "Permanent Cleanup" in the "URLA" Project.

  1. Right click the object you want to export.
  2. Select Share
  3. Select Export to Zip Archive...
  4. In the Share • Export to Zip Archive window, use the Filename property to select the zip file's path and name.
  5. Press the Execute button.


If you need to export multiple objects, you can put them in a folder and export the folder (just as we've seen with exporting multiple Batches and multiple Projects).

  1. We can export all three of these IP Profiles.
  2. We just have to export their parent folder.


When exporting objects in a Project please be vigilant in order to maintain reference integrity.
  1. If you wanted to export this OCR Profile, you couldn't only export this single object.
  2. The OCR Profile references an IP Profile as part of its configuration.
  3. Both objects would need to be exported at the same time (by placing the OCR Profile and the IP Profile in a folder and exporting the folder).
    • FYI: The more intertwined the references between objects in a Project, the trickier it will be to do this. Especially if references to objects in external Projects are present, you may end up needing to export the entire Project (and any Projects it references).

Import Grooper Objects from a Zip File

If you wish to follow along with this tutorial, you may import the zip archive files linked below into your Grooper Repository.

  • PLACEHOLDER

Importing Batches

Importing Projects

Importing Objects in a Project

Publish Projects to a Connected Repository