Skip to main content
Completed

New Process action - (Un)zip file

Related products:Software FactoryIndicium Service Tier
  • February 14, 2020
  • 5 replies
  • 196 views
Roel
K.Bakkenes
Kevin Horst
Harm Horstman
+11
  • Roel
    Roel
  • K.Bakkenes
    K.Bakkenes
  • Kevin Horst
    Kevin Horst
  • Vincent Doppenberg
  • Harm Horstman
    Harm Horstman
  • Robbert van Tongeren
    Robbert van Tongeren
  • Mark Jongeling
    Mark Jongeling
  • Benjamin Westra
  • Jaap van Beusekom
    Jaap van Beusekom
  • John Lunenburg
    John Lunenburg
  • John Sangers
    John Sangers
  • Sandro Burger
  • J. de Lange
    J. de Lange
  • damio
  • Marius Korff
    Marius Korff
  • Xavier de Bondt
    Xavier de Bondt

Mark Jongeling
Administrator

For my client it would be very much welcome to have a new Process action that can Zip and Unzip a file.

Since we will use Indicium to help us import files, we need to be able to Unzip uploaded/incoming files. Most times these zipped files are compressed with Bzip2. We currently run code to use 7-zip to unzip the files to the desired location.

I do think other companies can benefit greatly from this too.

 

The parameters for this action will most likely be but not limited to:

  • File location (where the zip file currently is)
  • Zip/Unzip to (location where to zip/unzip to)
  • Compression type (Type of compression used or to be used to zip/unzip - Bzip2 for instance)
  • Password (In case the file is or needs to be protected)

The Process action should return a list/variable of what files have come out of the zip file

Did this topic help you find an answer to your question?

5 replies

Forum|alt.badge.img+15
  • Superhero
  • 196 replies
  • February 14, 2020

We currently do something similar. We currently let the end user upload a zip file containing several import files that need to be processed (What we actually want is a multi file upload, requested here: https://community.thinkwisesoftware.com/ideas/141).

We've built a simple .net core web api converting the zip file and it's content to an xml or json file that's posted. We use a process flow for this: The first task is uploading the file to a variable, this variable is sent to the web service, which returns all data in a variable for further processing in another task.

Vice versa we do the same: We have a task in the end product that can generate a zip file: A xml variable is filled with all the necessary data (array of filename + contents), sent to the web service which converts it to a varbinary(max) variable that can be stored in the database. This is also described over here: https://community.thinkwisesoftware.com/deployment-12/moving-to-azure-sql-database-azure-file-storage-713

If you’re interested I can share some basic code here for the web api, this could give you a work-around for the time being.


Mark Jongeling
Administrator
Forum|alt.badge.img+23
  • Author
  • Administrator
  • 3959 replies
  • February 18, 2020

Thank you René for your given solution. Sadly the given solution does not fit the future architecture of my client. They only will use the Thinkwise software in combination with Azure database(s). For us it would be very important that unzipping files will be possible through the Process Flow so by submitting this idea (I already talked with the Product Innovation department), the idea can be planned and implemented. 

Currently we host our own database server and there we installed 7-Zip. Then with a script I can use 7-Zip to unzip the (Bzip2) file to a given location; currently a well working solution but it needs replacement in the future.

Again, thank you!


Mark Jongeling
Administrator
Forum|alt.badge.img+23
  • Author
  • Administrator
  • 3959 replies
  • March 28, 2022
Updated idea statusOpenWorking on it!

Jeroen van den Belt
Administrator
Forum|alt.badge.img+9
Updated idea statusWorking on it!Next release

Jeroen van den Belt
Administrator
Forum|alt.badge.img+9
Updated idea statusNext releaseCompleted

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings