Workflow Button field
Buttons are typically used in the user interface for decision-making.
| Attribute | Description | Required |
|---|---|---|
| label | The text is shown as a label in the user interface. | true |
| name | A unique field identifier Two fields can’t have the same name in the same task definition. The name must be unique. |
true |
| transition | If present, a process instance token will follow the indicated transition. | false |
| confirmation | The button will show a popup with an operation confirmation message. The message text used is the confirmation value. | false |
| validate | The default value is “true”. | false |
| style | Icon style applied to the button. Possible values: - yes - no - add - delete - download - downloadZip - home - view - change - compact - clean - search - save - comment |
false |
| color | Color applied to the button. Possible values: - success - primary - secondary - danger - warning - info - light - dark |
false |
| width | The width of the HTML element. In the case of KCenter, the UI must use width values based on percentages, for example: - width=“50%” will work - width=“100px” will be ignored in the KCenter UI. |
false |
<?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> <button name="deny" label="Deny" transition="deny"/></workflow-form>