Workflow Download field
This workflow is used to download a document.
| Attribute | Description | Required |
|---|---|---|
| label | The text shown as a label in the user interface. | true |
| name | Unique name identifier Two fields can’t have the same name in the same task definition. Name must be unique. |
true |
| width | The width of the HTML element. In the case of KCenter UI, you must use width values based on %, for example: - width=“50%” will work - width=“100px” will be ignored in the KCenter UI. |
false |
| data | When present, it is an identifier used to load data. For example, to dynamically load the uuid or path of the node to download. |
false |
Child elements:
- Node. For more information, see Workflow Node element.
- Validator. For more information, see Workflow Validator element.
Basic download example
Section titled “Basic download example”- Download button with a node element.
- The uuid is a valid document uuid.
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE workflow-form PUBLIC "-//OpenKM//DTD Workflow Form 1.0//EN" "https://www.openkm.com/dtd/workflow-form-1.0.dtd"><workflow-form > <download name="download" label="Download document"> <node label="download" uuid="afb8ac33-912d-4515-e29b-1c01b693809a" /> </download></workflow-form>Dynamic download example
Section titled “Dynamic download example”- Download button with a node element.
- The uuid is a valid document uuid.
- data is a valid mapping variable. This variable is used to dynamically set the uuid attribute on the node element.
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE workflow-form PUBLIC "-//OpenKM//DTD Workflow Form 1.0//EN" "https://www.openkm.com/dtd/workflow-form-1.0.dtd"><workflow-form> <download name="download" label="Download document" data="dynamic"> <node label="download"/> </download></workflow-form>