autodesk forge – How to create an activity for both ZIP and Unzip input

I am trying to run a Revit plugin on Forge Design Automation, the input to the plugin are Revit files from BIM 360 that are accessed using BIM 360 APIs. If the Revit document has links, it’s downloaded as a zip file (containing the links), otherwise, it’s a single Revit file. How can I define my activity so it can handle both scenarios? More specifically, how should I set:

data[‘parameters’][‘rvtFile’][‘zip’]

In my activity?

I don’t know if the file is downloaded as a ZIP file or not before it’s downloaded.

Read more here: Source link