Files task enables the creation of workflows for file management, offering the following available states:
File Upload
File Transfer
File Download
Prerequisite
An active Bridge agent. Refer here to install and configure Bridge.
Create necessary Credentials for the applications to be connected by the Files module.
For more details about the File management module in Bridge, the keys, and its description, click here.
Example Use Case: In the employee onboarding process, once the employee verification is done and approved, the documents related to the employees have to be uploaded and saved for future reference and compliance purposes.
The below section explains how to set up File states within a circuit configuration.
By integrating the state into your workflow, you can upload files to Qntrl's File module.
In Builder View, drag and drop the File Upload state from the left pane into your circuit or click the required File Upload state in your circuit.
Under Configuration, update the common state field attributes.
The Bridge ID field should capture the details of the Bridge to be used for this task. Select the required bridge from the drop-down list.
In the Add Configuration section, choose whether to enable recursive transfers by selecting the Is Recursive checkbox, and then specify the desired action type.
Move - Relocates files from source to destination.
Copy - Copying replicates the file to a distinct location, leaving the original file intact in the source.
Under the Source Details section, fill in the following fields:
Host - Enter the hostname/IP address of the machine from where the file has to be uploaded.
Credential Name - Select the credential of the source machine from the dropdown list.
Path - Location of the file from where the file has to be uploaded.
Under the Destination Details section, enter the Path location of the file to where it has to be uploaded.
In Input / Output, enter the Input Path, Output Path, and Result Path. Learn more about I/O paths.
"Upload Employee Documents": {"type": "file_upload","next": "Wait Period for Orientation","bridge_id": "bridge-1368_1","payload": {"source": {"remote": {"host": "qntrl-hr-machine","credential_id": "api_cred_1","file_path": "/Users/qntrl-hr-machine/files/employees/idlist.csv"}},"destination": {"cloud": {"file_path": "/Qntrl/HRFiles"}},"recursive": true,"action": "copy"}}
For associating a File Transfer state to a circuit:
In Builder View, drag and drop the File Transfer state from the left pane into your circuit, or click the required File Transfer state in your circuit.
Under Configuration, update the common state field attributes.
The Bridge ID field should capture the details of the Bridge to be used for this task. Select the bridge to be configured from the drop-down list.
In the Add Configuration section, choose whether to enable recursive transfers by selecting the Is Recursive checkbox, then specify the desired action type.
Move - Relocates files from source to destination.
Copy - Copying replicates the file to a distinct location, leaving the original file intact in the source.
Under the Source Details section, fill in the following fields:
Host - Enter the hostname/IP address of the machine from where the file has to be transferred.
Credential Name - Select the credential of the source machine from the dropdown list.
Path - Location of the file from where the file has to be transferred.
Under the Destination Details section, fill in the following fields:
Host - Hostname/IP address of the destination machine to where the file has to be transferred.
Credential Name - Select the credential of the destination machine from the dropdown list.
Path - Location of the file to where the file has to be transferred.
In Input / Output, enter the required paths. Learn more about I/O paths.
"Transfer Documents": {"type": "file_transfer","next": "End","start": true,"bridge_id": "<bridge_name>","payload": {"recursive": true,"action": "copy","source": {"remote": {"host": "<Host IP of the remote machine>","credential_id": "<credential_name>","file_path": "<source_file_path>"}},"destination": {"remote": {"host": "ncs mc","credential_id": "files_6","file_path": "hdsnjd"}}}}
For associating a File Download state with a circuit:
In Builder View, drag and drop the File Download state from the left pane into your circuit or click the required File Download state in your circuit
Under Configuration, update the common state field attributes.
The Bridge ID field should capture the details of the bridge to be used for this task. Select the bridge to be configured from the drop-down list.
Under the Source Details section, enter the Path location of the file from where the file has to be downloaded.
Under the Destination Details section, fill in the following fields:
Host - Hostname/IP address of the destination machine to where the file has to be downloaded.
Credential Name - Select the credential of the destination machine from the dropdown list.
Path - Location of the file to where the file has to be downloaded.
In Input / Output, enter the required paths. Learn more about I/O paths.
"Download a File": {"type": "file_download","next": "End","start": true,"bridge_id": "<Bridge Name>","payload": {"source": {"cloud": {"file_path": "<source_file_path>"}},"destination": {"remote": {"host": "<Host IP of the machine>","credential_id": "<credential_name>","file_path": "<destination_file_path>"}}}}
You are currently viewing the help articles of Qntrl 3.0. If you are still using our older version and require guidance with it, Click here.