Workflow Print field
Used to print a document.
| Attribute | Description | Required |
|---|---|---|
| label | The text shown as label in user interface. | true |
| name | Unique name identifier Two fields can’t have the same name in the same task definion. Name must be unique. |
true |
| width | The width of the HTML element. | false |
| height | The height of the HTML element. | false |
| data | When present, is an identifier used to load data. For example dynamically set the uuid or path of the document to download. |
false |
- Child elements:
Basic print example
Section titled “Basic print example”-
Print a document
-
uuid is a valid document uuid.
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE workflow-forms PUBLIC "-//OpenKM//DTD Workflow Forms 2.6//EN""http://www.openkm.com/dtd/workflow-forms-2.6.dtd"><workflow-forms><workflow-form task="print test"><print name="print" label="Print document"><node label="print" uuid="afb8ac33-912d-4515-e29b-1c01b693809a" /></print></workflow-form></workflow-forms>
Dynamic print example
Section titled “Dynamic print example”- Print an existing document
- data is a mapping valid variable. This variable is used to dynamically set uuid attribute into the node.
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE workflow-forms PUBLIC "-//OpenKM//DTD Workflow Forms 2.6//EN" "http://www.openkm.com/dtd/workflow-forms-2.6.dtd"><workflow-forms> <workflow-form task="print test"> <print name="print" label="Print document" data="dynamic"> <node label="print" /> </print> </workflow-form></workflow-forms>