cancel
Showing results for 
Search instead for 
Did you mean: 

Archive to Zip - In an automated way

Highlighted
Moderator

Archive to Zip - In an automated way

This is intended for organizations that want to automate the review archival process upon review completion. In short,

when a review completes, you'll get a zip archive that contains everything that happened in the review. The archive will

contain PDF documents, and the file versions involved. This non-proprietary format will allow you to keep your

regulatory review data for years to come, without having to maintain a Collaborator server forever.

How does the automated process work?
We'll call the Collaborator command line client directly from a server trigger when the review changes phases. We wont check to see if the phase has transitioned to completed, because the archive command line will not export an in-progress review. If your team is using the tool heavily, then you should create a shell script or batch file, and check the review phase before calling the Collaborator command line client. This will result in improved performance, but is not really necessary for small or medium sized installations.

Configuring the trigger in Collaborator
1. Install the Collaborator client software on the Collaborator server.
Command line client instalaltion: http://codecollaborator.smartbear.com/docs/manual/9.0/client_install.html
2. Create a directory to store our archived reviews. We'll be using c:\my-archived-reviews in this example. Note that we'll use /my-archived-reviews in the Linux example.
3. Login to the Collaborator web interface as an administrator.
4. Go to the Admin->Triggers page
5. Find the "Review Phase Changed" trigger, and configure it as follows:
Windows:
Executable: c:\program files\collaborator client\ccollab.exe
Parameters: admin archive $

{review.id} --zip-path c:\my-archived-reviews

Linux:
Executable: /usr/local/ccollab_client/ccollab.exe
Parameters: admin archive ${review.id}

--zip-path /my-archived-reviews

Note: You'll need to update the executable path for the Collaborator command line client as necessary.

More information on Collaborator server triggers:

http://codecollaborator.smartbear.com/docs/manual/9.0/admin_triggers.html

3 REPLIES 3
Highlighted
New Contributor

Re: Archive to Zip - In an automated way

Hi, 

 

Need some help, I have tried to execute all the steps(https://support.smartbear.com/viewarticle/78198/) that have been provided and also executed a use case to complete the review. But I am unable to see any data archived in the directory that was specified in the admin->Triggers

 

"Excutable: c:\program files\collaborator client\ccollab.exe"

"Parameters : admin archive ${review.id} --zip-path E:\archived_reviews"

 

Is there any other step that I am missing which could help me identifying.

 

Thank you for your time and Patience.

 

PK.

Highlighted
Moderator

Re: Archive to Zip - In an automated way

Try using the window command prompt (cmd.exe) as the executable.

 

"Excutable: c:\windows\System32\cmd.exe"

"Parameters : /C "c:\program files\collaborator client\ccollab.exe" admin archive ${review.id} --zip-path E:\archived_reviews"

 

 

Highlighted
New Contributor

Re: Archive to Zip - In an automated way

Its not working..
New Here?
Join us and watch the welcome video:
Building with the Collaborator API

Help Documenation
The Collaborator API is a JSON-RPC API that lets you integrate with Collaborator 9.0 and above. For more information about how the API works, check out the API description here:


Sample Plugins
For an example of an add-in that uses the API, take a look at the Microsoft Word Add-in for Collaborator:


We list all the great plugins our network has already built on this page on the SmartBear website.