Property description
The workflows property is a set of workflow states that an object goes through during its lifecycle in Dawiso.
Before creating a workflow, make sure you already defined your workflow states.
Minimal JSON
{
"key": "",
"name": "",
"initStateKey": ""
}{
"key": "basic_workflow",
"name": "Basic workflow",
"description": "",
"state": "active",
"isDefault": false,
"isEmpty": false,
"initStateKey": "draft",
"diagramContentType": "image/png",
"diagramContent": "iVBORw0KGgoAAAANSUhEUgAACGAAAARmCAIAAAD...",
"transitions": [
{
"name": "Draft",
"fromStateKey": "approved",
"toStateKey": "draft",
"changeThresholdTypeKey": "one_user",
"userRelationTypes": [
{
"key": "core#steward"
}
]
}
]
}Example taken from the core package.
Nested properties
| Property | Description | Values | Mandatory |
|---|---|---|---|
key | Unique key of the asset. Used for referencing in the same package or other packages using packageKey#assetKey. | string | Yes |
name | Name of the asset, used as the default EN translation. | string | Yes |
initStateKey | Key of the workflow’s initial workflow state. | string | Yes |
description | Description of the property, displayed as a tooltip. | string | No |
diagramContentType | Workflow diagram image type, supported options (in MIME format) are: image/png, image/jpeg, image/svg+xml | string | No |
diagramContent | Workflow diagram in Base64 format. | string | No |
isDefault | Determines whether the workflow is always selected by default. | boolean | No |
isEmpty | Determines whether workflow doesn’t have any workflow states. | boolean | No |
isSelectable | Determines whether the workflow can be selected by other users. | boolean | No |
transitions | Array of transitions between workflow states. | array | No |
state | Current status of the asset. Supported options are: active (asset is active and visible in the environment), inactive (asset is inactive and hidden, serves as a soft delete), hidden (asset is active but hidden in the environment). | string | No |
translations | Array of translation keys and their definitions that determine how the text is displayed in the UI for the specific asset. For more information, see Translations. | array | No |