A workflow defines the lifecycle states an object moves through and who can move it between them. Every application uses a workflow, so select a workflow type for each application.
Workflow types
Dawiso offers the following workflow types:
- Default workflow: Full lifecycle with review, approval, and expiration states.
- Basic workflow: Simplified approval with draft, approved, and archived states.
- Checklist workflow: Task-oriented with to do, in progress, and done states.
- Empty workflow: No workflow states associated with the application.
Default workflow
Depending on your user role, you have access to different workflow states. In the graph below, you can see the Default workflow states and how they interact with one another.
- Contributor can:
- Add an object in the
Draftstate. - Change
Returnedobjects to theDraftstate. - Change
Cancelledobjects to theDraftstate.
- Add an object in the
- Data steward can change the workflow state to (in)
Review, and then move the object to the following states:Cancelled: After being cancelled, the object can still be given back to the contributor and moved to theDraftstate.Approved: After being approved, the object can still be moved to theExpiredorReturnedstate.
Basic workflow
Depending on your user role, you have access to different workflow states. In the graph below, you can see the Basic workflow states and how they interact with one another.
- Contributor can add an object in the
Draftstate. - Data steward can move the object to the
Approvedworkflow state.Archived: An object in theApprovedstate can be moved to archived.- Both approved and archived objects can be returned to the
Draftstate for the contributor to update.
Checklist workflow
In the graph below, you can see the Checklist workflow states and how they interact with one another.
- An object is first added in the
To dostate. From here an object can be moved to the following states:In progress: Object can then be moved back to theTo doorDonestates.Done: Object can then be moved back to theIn progressstates.
Draft approval process
Applying concepts can be restricted to users with specific permissions, adding an additional step to the workflow:
- Once a contributor finishes their draft, they must click the Send for Approval button.
- A notification is sent to all users with permission to apply the concept.
- Depending on your workflow configuration, once one or all users approve the concept, one of them can apply it.
Multiple users approval
Click the workflow state to open a dropdown with one card per available transition. Each card is labeled with the transition’s own name when the workflow defines one, otherwise with the target state’s name.
| Card | Meaning |
|---|---|
| A progress summary, such as 0 of 2 needed, with a progress bar | Approval is tracked per person. Click it to expand the individual approvers and whether they’re Waiting or Approved. |
| All Contributors | Anyone with space write permission can approve. |
| Unassigned | Approval is needed, but no approver is set yet. |
| An inactive card | You can’t perform this transition, but you can still see it’s pending. |
When a transition needs approval from several users and at least one approval has been given, the workflow state button on the object shows Waiting for approval with a badge such as 1/2 (approvals given out of approvals needed). The button updates right after you approve, so you don’t need to reload the page or reopen the menu. Once all required approvals are in, the button returns to its normal look.
Workflow preview window
On an object, click the workflow state and select Show workflow to open the workflow as an interactive diagram. Administrators can open the same window from Metamodel Admin > Workflows (select View) and from an application’s configuration. Select a state or a step in the diagram to see its details in the panel on the right.
The window has these controls:
| Control | What it does |
|---|---|
| Zoom in, Zoom out | Make the diagram larger or smaller. A button is disabled when the diagram can’t be zoomed any further. You can also zoom with the mouse wheel. |
| Fit to window | Resizes the diagram so that all of it is visible. Use it to get back after zooming or dragging the diagram out of view. |
| Hide details, Show details | Hide the details panel so the diagram can use the full width of the window, or show it again. |
| Fullscreen, Exit fullscreen | In the window header. Makes the window fill the whole screen, or returns it to its normal size. |
To change the width of the details panel, drag its left edge. The panel can’t be narrower than 280 px. Dawiso remembers the panel width and whether the panel is hidden in your browser, so the window opens the same way next time. On a narrow screen, the panel moves below the diagram.
For a large workflow, hide the details panel and zoom in. The diagram gets more room and the state names become easier to read. After you resize the panel, select Fit to window to make the diagram use the new space.
Custom workflow configuration
Administrators can draw and edit custom workflows in the app, under Settings > Metamodel Admin > Workflows. See Workflow editor. Workflows that come from a package open read-only in the app; use Duplicate to get an editable copy. Here, it is possible to configure custom:
- Workflow type and its diagram (the Show workflow view is an interactive diagram of the workflow’s states and transitions; an image can also be added per workflow type, and users can switch to it, see Show a workflow diagram)
- Workflow states
- Allowed state transitions and who can change them
- Optional color, icon, and sort order of each transition
To change which workflow an app in a space uses after it’s been added, see Change the workflow of an app.
Saving a workflow in the editor publishes a new version of the cust_workflows package and installs it.
Show a workflow diagram
On an object, click the workflow state and select Show workflow. The same button is on an application’s configuration page. In Metamodel Admin > Workflows, View opens the diagram for a workflow from a package. It opens a Workflow window with the diagram and a legend under it, and a details panel beside it.
- On an object, the top of the diagram names the current state. Fit to window re-fits the diagram.
- On an object, the current state has a thicker dark border, the steps you can take now are blue, and all other steps are grey and faded. The legend explains Where it is now, You can do this now, and Not available to you now. Without an object, every step is drawn plainly.
- A line is labelled with the transition’s own name. A transition without a name has no label.
- Select a step or a state to show its details in the panel. The selected state gets a thicker blue border (green on states whose color is close to blue), and the selected step a thicker blue line. With the keyboard, press Tab to reach states and steps and open them with Enter or Space.
- Step details show Who can do this (the roles, or “Everyone who can edit in the space”). On an object, they also show “You can take this step now” or “You cannot take this step now”, and, when the step starts from another state, which state the object must be in. When several people must agree, the panel shows the approval progress, such as “1 of 2 needed”, with the approvers. A note appears when a comment is required. Take this step appears when you can take it. It opens the same comment and user-pick dialogs as the workflow menu. If the object has unsaved changes, you are asked about them first.
- State details show “Objects start in this state.” on the start state. On an object, the current state shows whether you can edit the object and add or remove attachments now. Then come Who can edit objects in this state, Who can add and remove attachments, and, for object types that decide editing by conditions, Who can change which fields (fields you can change now are marked “You can change it now”). The last section is Steps out of this state. Without an object, the panel says “Who can edit objects in this state is shown when you open the workflow from an object.”
- Without an object (application configuration page, Metamodel Admin), nothing can be taken: there is no current state and no Take this step.
- The diagram uses the layout saved in the workflow editor, including bends in transitions. A workflow without a saved layout is arranged automatically.
- If an image was uploaded for the workflow, Show uploaded image switches to it, and Show diagram switches back. If the image can’t be loaded, the window shows “Workflow diagram not found” and keeps the diagram.
Transition color, icon and order
In the workflow editor, a transition’s color and icon are set under Appearance in the object menu, and the order by dragging the state’s Transitions out of this state list.
Each transition can have its own color and icon, set via the optional colorKey, iconKey, and sortOrder package fields.
- Color and icon: falls back to the target state’s when not set.
- Order: sorted by
sortOrder, lowest first. Transitions without one come last; ties fall back to ID. - Validation: an unknown
colorKeyoriconKeyfails validation, so the package won’t install until it’s fixed. - Clearing a value: omit the field on reinstall to remove a color, icon, or order you’d set before.
Custom workflows are available for all applications. It is not possible to restrict a workflow to a specific application.