Download File
This post is referring to Vahana 2 (beta version). To check the document for production, please go to vDesigner-v1.0
When you configure the Download File task, it downloads the file from the configured URL-based location as a result of the user’s action. After the Download File task successfully downloads the file, it stores the file in the default app’s storage location on the device.
Steps to Configure
To configure the Download File task:
- On the <<task group’s name>> page, find the Task panel.
- In the Task panel, search and find the Download File task.
- Drag the Download File task from the Task panel to the Execution block.
- Under Download File, a group of boxes comes into view.
- In the group of boxes, configure related properties as follows:
Box | Description |
Reference Name | In this box, enter the name of the task. Also the system generates a reference name by default that you can change. |
URL | This property allows you to configure the URL-based location that the Download File task accesses to download the file. You can configure the URL as follows: You can configure the URL in the following ways: a. Defining URL Manually To configure the URL manually: 1. Click in the URL box, and a smart selector expands. 2. In the Search box, enter static, and the smart selector displays the Static function. 3. In the Static function, click the Number parameter, and a list of different data types expands. 4. In the list, select String, and then click the value parameter. 5. In place of the value parameter, enter the URL string manually as follows: www.example.com/widgets b. Selecting an Attribute 1. Click in the URL box, and a smart selector expands. 2. In the URL box, enter the attribute’s name that contains the URL string, and the smart selector displays the attribute’s name. 3. In the smart selector, select the attribute. Note:- The following JSON object contains the URL string. This JSON object has been defined in the Data Modeler module. |
File Name | In this box, enter the name of the file (for example: – myvideo.mp4). After the Download File task downloads the intended file, it saves the file with the file name that you entered in the File Name box. |
Instant Share | This property provides the following options: a. Yes This tab is selected by default. Selecting this option makes the file sharing feature available. b. No Selecting this option makes the file sharing feature unavailable. |
Business Rule | In this box, you can configure a business rule to determine the execution of the Download File task. If the user’s action satisfies the condition in the business rule, the Download File task is executed. To configure the business rule: a. In the Business Rule box, click the application tree icon (), and the Business Rule panel opens. b. In the Business Rule panel, click Create New to configure a new business rule. |
- After you configure the related properties, click Save to configure the Download File task.
Was this article helpful?
YesNo