2023:Download or Upload Grooper Nodes: Difference between revisions

From Grooper Wiki
Line 135: Line 135:
</tabs>
</tabs>


=== Downloading Projects ===
==== Downloading Projects ====


You can also download full '''Projects''' as ZIP files.   
You can also download full '''Projects''' as ZIP files.   
* All the '''Project's''' contents will be exported as well.
* All the '''Project's''' contents will be exported as well.
* To download multiple '''Projects''', they must be placed in the same folder first. See the "Downloading Multiple Projects" tab below for more information.


<tabs>
<tabs>
Line 144: Line 145:
=== Before Downloading: Check References ===
=== Before Downloading: Check References ===


Generally speaking, the '''Project''' contains all the processing resources necessary to execute a '''Batch Process''' and process one particular document set.  This may include:
Generally speaking, a '''Project''' contains all the processing resources necessary to execute a '''Batch Process''' and process a particular document set.  This may include:
* A '''Content Model'''
* A '''Content Model'''
* A '''Batch Process'''  
* A '''Batch Process'''  
Line 155: Line 156:


For this reason, it is best practice to analyze your '''Project''' references ''prior'' to downloading to ensure you are not missing a referenced resource.
For this reason, it is best practice to analyze your '''Project''' references ''prior'' to downloading to ensure you are not missing a referenced resource.
* Use a '''Project's''' "Usage" tab to give you information about references to any object in ''other'' '''Projects'''.
* BE AWARE!! Uploading a ZIP will ''fail'' if an referenced object is not present in the destination Grooper Repository.
* BE AWARE!! Uploading a ZIP will ''fail'' if an referenced object is not present in the destination Grooper Repository.
==== Example 1:  A Project With No External Project References ====
{|class="how-to-table"
|
In this example, we will use the "Usage" tab to verify a '''Project''' has no external references.
# Select the '''Project'''.
# Navigate to the "Usage" tab.
# Nothing is listed in the "Outbound References" or "Inbound References"
#* This '''Project''' has no external references to objects in other '''Projects'''.
This '''Project''' is entirely "self-contained".  All the necessary processing resources are contained in the '''Project''' itself.  It is not dependent on any other '''Project'' to function.
* In situations like this, you can download the '''Project''' without any worries whatsoever.  Go to the "Downloading Single Projects" tab to see how to download this '''Project'''.
|
[[File:Download-and-Upload-Projects-01.png]]
|}
==== Example 2: A Project With External Project References ====
{|class="how-to-table"
|
In this example, we will use the "Usage" tab to inspect a '''Project''' that ''does'' have external references.
|}


</tab>
</tab>

Revision as of 15:46, 12 June 2023

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.


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

Download them from one Grooper Repository and upload them to another!

About

Grooper allows you to download Grooper objects from a Grooper Repository to a ZIP archive file. You can then bring in those objects into a Grooper Repository by uploading the ZIP file.

When download/upload Grooper objects, you can do one of three things.

You can:

  • Download/upload Batches
  • Download/upload full Projects
  • Download/upload Grooper objects inside a Project

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


Most notably be aware of the following:

  • When downloading a Project, it is best practice to use the "Usage" tab to verify there are no broken references to objects in other Projects.
  • You may only upload Batches to the Batches > Test folder, the Batches > Production folder or one of their subfolders.
  • You may only upload Projects to the Projects folder or one of its subfolders.
  • For other Grooper objects downloaded from a Project, you may only upload them to a Project (or a valid location inside a Project).
  • When uploading Batches, Projects and other Grooper objects, if the item exists in the selected branch of the Node Tree, Grooper will overwrite the existing object.
    • For example, if you import a Project to a folder named "Grooper" and that folder already contains that Project (i.e. has the same GUID), that Project will be overwritten.
  • When uploading folders containing multiple Batches, Projects or other Grooper objects, if the folder exists in the selected branch of the Node Tree, Grooper will overwrite the existing folder and all its contents.
    • For example, if you import a folder named "Grooper" to the Projects node, and that folder already exists (i.e has the same GUID), that folder and everything inside it will be overwritten.
  • When uploading Batches, Projects and other Grooper objects, if an object in the ZIP already exists in the Grooper Repository at a different level, the upload will fail.
    • Grooper will check each node's GUID. If any GUID in the ZIP matches any GUID in the Grooper Repository, Grooper will throw an error.
    • When uploading a folder, Grooper will also check all objects inside the folder. If any of its contents exist in the Grooper Repository, the upload will fail.


FYI

Additionally you can "publish" full 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.

WIP EDITORS NOTE: All content below this point was taken from the Import or Export Grooper Objects - 2022 article. Largely, the guidance is the same, with some UI differences.
  • In the 2022 thick client, "export" corresponds to "download" in the 2023 web client.
  • In the 2022 thick client, "import" corresponds to "upload" in the 2023 web client.

This article is under construction and will be updated using 2023 terminology and screenshots.

How To

Download Grooper Objects to a ZIP File

Downloading Batches

One or more Batches can be downloaded from a Grooper Repository.

  • Both "Production" and "Test" Batches can be downloaded.
    • "Production" Batches are downloaded from the "Batches > Production" folder or one of its subfolders in the Node Tree.
    • "Test" Batches are downloaded from the "Batches > Test" folder or one of its subfolders in the Node Tree.
  • To download multiple Batches, they must be placed in the same folder first. See the "Downloading Multiple Batches" tab below for more information.

Downloading Single Batches


  1. Select the Batch you want to download.
  2. Press the "Download" button at the top right of the page.


  1. This will bring up a window confirming you wish to download the selected object.
  2. Press the OK button.


  1. Grooper will download the Batch to your browser's download location.
    • The downloaded file will be a ZIP file, whose name will be whatever the selected Batch's name is.

Downloading Multiple Batches

What if you want to download more than one Batch?

To download multiple Batches, first put all the Batches you want to download in a folder. Then, select and download the folder.

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

After moving the Batches you want to download to a subfolder in the "Production" or "Test" folder:

  1. Select the folder.
  2. The selected folder, including all its contents will be downloaded to the ZIP file.
    • In this case, these two Batches.
  3. Press the "Download" button at the top right of the page.


  1. This will bring up a window confirming you wish to download the selected object.
  2. Press the OK button.


  1. Grooper will download the folder and its children (i.e. the multiple Batches inside it) to your browser's download location.
    • The downloaded file will be a ZIP file, whose name will be whatever the selected folder's name is.

|}

Downloading Projects

You can also download full Projects as ZIP files.

  • All the Project's contents will be exported as well.
  • To download multiple Projects, they must be placed in the same folder first. See the "Downloading Multiple Projects" tab below for more information.

Before Downloading: Check References

Generally speaking, a Project contains all the processing resources necessary to execute a Batch Process and process a particular document set. This may include:

  • A Content Model
  • A Batch Process
  • Other Grooper objects like OCR Profiles and IP Profiles


However, sometimes, a Project will reference resources in other Projects using one or more Referenced Projects.

  • If you are downloading a Project ZIP so another Grooper user can upload it to their own environment, you will need to ensure both the Project and any referenced Project will need to be downloaded together. This will ensure the user uploading the ZIP has all the resources necessary to upload the ZIP into their Grooper Repository.


For this reason, it is best practice to analyze your Project references prior to downloading to ensure you are not missing a referenced resource.

  • Use a Project's "Usage" tab to give you information about references to any object in other Projects.
  • BE AWARE!! Uploading a ZIP will fail if an referenced object is not present in the destination Grooper Repository.

Example 1: A Project With No External Project References

In this example, we will use the "Usage" tab to verify a Project has no external references.

  1. Select the Project.
  2. Navigate to the "Usage" tab.
  3. Nothing is listed in the "Outbound References" or "Inbound References"
    • This Project has no external references to objects in other Projects.


This Project' is entirely "self-contained". All the necessary processing resources are contained in the Project itself. It is not dependent on any other Project to function.

  • In situations like this, you can download the Project without any worries whatsoever. Go to the "Downloading Single Projects" tab to see how to download this Project.

Example 2: A Project With External Project References

In this example, we will use the "Usage" tab to inspect a Project that does have external references.


Downloading Single Projects


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.

</tab>

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).

Click here to return to the top

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.

In previous versions of Grooper, you imported Grooper objects from one location, the Root Node of the Grooper Repository. Grooper would then place the imported assets in the Grooper Repository in a way that mirrored their location in the node tree they were exported from. In Grooper 2022, you will choose where you want the imported objects to land by importing to a node location of your choosing.

Importing Batches

You can only import Batches to a folder location that can house Batches. Batches can be either imported to the Batches > Production folder node, the Batches > Test, folder node, or any of their child folders.


  1. To import a Batch right-click the folder node you want to import to.
    • In this case, we will import to the Test folder.
  2. Select Share.
  3. Then, select Import ZIP Archive...


  1. This brings up the Share • Import ZIP Archive window.
  2. Use the Filename property to enter the ZIP's file path or browse to the file.
  3. Press Execute to import.


  1. If successful, you will receive the following message.
  2. Press OK to continue.
  3. Your Batch will be added to the folder location you originally right-clicked to start the import.


FYI A folder containing multiple Batches in a ZIP file may be imported as well, just like we did a single Batch.

Importing Projects

Importing Projects is much the same as importing Batches. The only difference is at what node in the node tree you can import them.

You can only import Projects to a folder location that can house Projects. Projects can be only be imported to the Projects folder node or any of its child folders.

Otherwise, the process is identical.

  1. To import a Project right-click the folder node you want to import to.
    • In this case, we will import to the Projects folder.
  2. Select Share.
  3. Then, select Import ZIP Archive...
  4. This brings up the Share • Import ZIP Archive window.
  5. Use the Filename property to enter the ZIP's file path or browse to the file.
  6. Press Execute to import.


  1. If successful, you will receive the following message.
  2. Press OK to continue.
  3. Your Project will be added to the folder location you originally right-clicked to start the import.


FYI A folder containing multiple Projects in a ZIP file may be imported as well, just like we did a single Project.

Importing Objects in a Project

You can also import a variety of other Grooper resources, including Content Models, profiles (such as OCR Profiles), extractors (such as Data Types) or other Grooper objects. If it can live in a Project, you can import it to a Project or a subfolder within a Project.

We will demonstrate this by showing you how to import a Content Model.

  1. Right-click the Project (or Project subfolder) you want to import the object to.
    • In this case, we will import a Content Model in the ZIP file to the "Human Resources" Project.
  2. Select Share.
  3. Then, select Import ZIP Archive...
  4. This brings up the Share • Import ZIP Archive window.
  5. Use the Filename property to enter the ZIP's file path or browse to the file.
  6. Press Execute to import.


  1. If successful, you will receive the following message.
  2. Press OK to continue.
  3. Your imported Grooper object will be added to the Project you originally right-clicked to start the import.


FYI A folder containing multiple resource objects in a ZIP file may be imported as well, just like we did a single object.

Common Issues

Issue #1: Importing Objects That Already Exist

If you try to import an object that is already present in your Grooper Repository, Grooper will not let you.

If the GUIDs of the items match, you will be presented with the following error:

<Object Name> already exists elsewhere in the repository

Issue #2: Importing Objects To the Wrong Location

Remember, you can only import objects to a node location designed to hold that type of object.

  • For example, Batches to a folder location designed to hold Batches. If you try and import the ZIP to a node location that can't hold Batches you will be given an error message.
  1. Here we tried to import a Batch to a Project node.
  2. Grooper gives us an error message.
    <Object Name> does not allow children of <Object Type>
    • This tells us that the source location we tried to import cannot accept the object we're trying to import.
    • In this case, a Project can't accept a Batch. Batches don't go in Projects. They go in the Batches > Production or Batches > Test folders.

Issue #3: Importing Objects With Missing References

This issue can happen when objects were exported incorrectly from Grooper in the first place. When importing Grooper objects that reference other Grooper objects, both objects must be imported together. If the referenced object is missing, Grooper will give you an error.

  1. For example, this Project makes a reference to another Project.
    • In this case, the Project making the reference is named "ACE Training".
  2. The referenced Project should also be exported.
    • In this case, the referenced Project is named "Connection".


But what happens if we don't export both Projects and instead only export the Project making the reference?


Grooper will not let you import the object and give you an error message instead.

  1. This message lets you know the inbound node (our "ACE Training" Project) contains references to external nodes (our "Connections" Project) that do not exist in the repository.
    • Essentially, the "ACE Training" Project is making a reference to something that doesn't exist, either in the ZIP file or the target Grooper Repository.

Click here to return to the top

Publish Projects to a Connected Repository

If you're connected to multiple Grooper Repositories and need to get a Project from one Repository to another, there's no need to export a ZIP file from one Repository, then import the ZIP in another Repository. You can save yourself some steps by "publishing". This allows you to copy Projects and their contents from one Grooper Repository to another.

Publishing Projects is like exporting and importing all at once from one Grooper Repository to another. The same guidance detailed above when exporting and importing objects applies to publishing Projects as well.

  • The biggest difference is you can only publish full Projects, not Batches or individual objects contained within a Project.
  • You can also only publish one Project at a time. This means if you are attempting to publish a Project that references another Project, you will need to publish the referenced Project first.

Be aware "Publishing" is a essentially a "copy and paste" operation. The Project is "copied" from the source Grooper Repository and "pasted" to the destination Grooper Repository. You will need to ensure you have enough disk space to make the copy and paste. This means:

  1. The user's file system publishing the Project must have enough diskspace the create a temp file for the "copied" Project.
  2. The target Grooper Repository's file store must have enough diskspace for the "pasted" Project.

Aside from that, the process is straightforward.

  1. Right-click the Project you want to publish.
  2. Select Share.
  3. Then, select Publish to Grooper Repository...


  1. This will bring up the Share • Publish to Grooper Repository window.
  2. Use the Target Repositories property to select the Repository (or Repositories) you wish to publish to.
  3. Check the box next to the Repository you want to select.
    • We've selected a Grooper Repository we're connected to named "Grooper 2022"
  4. Press the Execute button to publish.


If successfully published, a copy of the Project will be made in the target Grooper Repository or Repositories.

  1. We published to the Grooper Repository named "Grooper 2022".
  2. We can verify the published Project is now present.