Administrators can draw custom workflows directly in Dawiso instead of writing package files. The editor is on the Workflows screen of Metamodel Admin.

Warning

The workflow editor requires administrator permissions. Other users are redirected to the “not allowed” page.

Open the editor

  1. On the Settings page, open Metamodel Admin and select Workflows.
  2. At the top of the table, click + New workflow.
  3. Name the workflow and provide a description.
  4. To start, select one of the following:
    • Blank: Enter the draft state and create your workflow from scratch.
    • Copy of an existing workflow: Select an existing workflow to populate the editor with the same states and transitions for you to edit.
  5. Click Create and open editor.
  6. Select the empty canvas to open the Workflow tab in the inspector, where you can also set the Key, Translations, and Offer in the workflow picker. The tab shows where the workflow is used (space application and object counts) and links to the package and version it’s saved in.
Tip

From the list of workflows:

  • Click Duplicate to open a workflow defined in a package as an editable, unsaved copy (named with “(copy)” added). It becomes a new workflow when you save it.
  • Click Edit on a custom workflow to modify it.
  • Click Delete on a custom workflow to remove it. It’s disabled while a space application uses the workflow, and the default workflow can’t be deleted until another workflow is made the default. A deleted workflow no longer appears as an option when adding an application to a space or changing an app’s workflow.

Draw the workflow

Using the toolbar in the editor, you can:

  • Add new states
  • Undo and redo actions
  • Auto-arrange all elements
  • Fit the diagram to your screen
  • Zoom in and zoom out
Tip

To select multiple elements, hold Shift or Ctrl and click to add to the selection. Press Ctrl+A to select everything, or hold Shift and drag on empty canvas to draw a selection box. Drag one selected state to move all selected states together.

The Selection window shows how many states and transitions are selected and allows deleting all.

Add and arrange states

To add a new workflow state:

  1. Click Add state to create a new blank state on the grid.

  2. Name the state and optionally add a description. You can also change the workflow state key, but only before the first save: it can’t be changed afterward, and existing keys stay read-only.

  3. [Optional] Add other language translations of the workflow state name.

  4. Set the state’s Icon and Colour from the small toolbar that appears next to it. The Colour menu offers a fixed set of 10 colours; hover one to see its name, or type a colour name such as “blue” in the search box. New states start blue, and a state with a colour outside that set keeps it.

  5. In the Editing in this state section:

    • Define who can edit the objects in that state. Leave it empty to allow everyone (the hint reads “Everyone who can edit in the space”).
    • Define who can manage attachments. Leave it empty to allow everyone (the hint reads “Everyone with write access to the space, even if edit roles are set”).
  6. In the Which attributes, relations and roles can be changed section, select Set editing rules to open the Editing rules dialog and configure what the selected users can edit. Add object type offers only object types that have field rules turned on; remove one again with its Remove button. The summary shows how many fields can be changed in this state and how many are for Only admins and space admins.

  7. Configure restrictions by toggling:

    • Block new child objects
    • Block moving objects

    A warning appears when the object types that use the workflow don’t have the feature turned on.

  8. [Optional] Under Transitions out of this state, drag the state’s outgoing transitions into order to control how they appear in the object’s menu.

  9. [Optional] Set a Special meaning for the state. A meaning that another state already holds is unavailable and names that state.

  10. Optionally, once you have the states you need, select the empty canvas and choose one of them as the Start state in the Workflow tab.

Continue with transition configuration.

Tip

Click Add existing state for a list of states that already exist. Select one to reuse it. The list shows each state’s color, icon, name, key, owner, and how many workflows use it. You can use the Used in workflow filter to show only the states of one workflow.

Tip

A state from another package is read-only. A banner names the package it’s defined in, and Make your own copy swaps in an editable copy. An own state that other custom workflows use shows a banner naming those workflows; Make a separate copy for this workflow gives this workflow its own copy.

Double-click a state to rename it. Press Enter to confirm or Esc to cancel.

Connect states with transitions

Hover over a state and click the arrow on the right to create a transition. One click creates a transition and a new workflow state. Drag to another state to create a transition between the two.

To modify the transition line:

  • Select and drag the transition line to add a bend. Drag the bend handle to move it, or double-click it to remove it. Bends are saved with the workflow. Line segments next to a bend stay horizontal or vertical.
  • A selected transition also shows a handle at each end. Drag it to move where the line meets the state.
  • Two transitions that run in opposite directions between the same two states are drawn as two parallel lines, so both stay visible.

Configure the transition

  1. Click the transition line to open its configuration window.
  2. Name the transition, and optionally, add other language translations of the transition name.
  3. Configure its appearance in the object menu by selecting its icon and color. Leave both empty to use the target state’s look.
  4. Define who can transition the object. Leave it empty to allow everyone who can edit in the space.
  5. Choose how many people must agree to the transition. The following options are available:
    • Any one person
    • One person from every role
    • Everyone in every role
  6. [Optional] If you chose Any one person, toggle Hide from the approver list per role.
  7. Toggle Require a comment to enforce a comment explaining the reason for the transition.
  8. In the Then also section, you can choose to:
    • Clear the role after the transition
    • Copy one user from one role into another role
    • Assign the user who made the change into a role
    • Pick a user for a specified role
    • Run a selected pipeline
  9. [Optional] Define which user roles get notified about this change, per channel (In app, Email, Daily digest). A new transition shows “Nobody is notified yet. Search for a role to add it.” Only roles with a channel ticked are listed, and roles that share a name show their key next to it. Use Only in space to limit a notification to one space.

Keyboard shortcuts

These work while the canvas has focus. They do nothing in a read-only workflow or while you type in a field.

  • Ctrl+Z undoes. Ctrl+Shift+Z or Ctrl+Y redoes. On a Mac, use Cmd+Z and Cmd+Shift+Z.
  • Delete or Backspace removes the selected states and transitions.
  • Ctrl+C copies the selected state. Ctrl+V pastes a copy to the right of the original, with “(copy)” added to its name. The copy is a new state of this workflow with the same settings and field rules, but without a special meaning and without transitions.
  • Esc hides the selected state’s toolbar.

Check the workflow

The checks panel lists what’s still missing, each with a count and the affected items:

  • The workflow has no start state.
  • A state without a name.
  • A state without a color and an icon.
  • A key with an invalid format, or one already used by another workflow or state.
  • An action on a transition without a role.
  • Two transitions that connect the same states in the same direction.
  • A state that can’t be reached from the start state.

When every state can be reached, the panel says so, and lists the final states.

Select Show next to an item to select it, center it on the canvas, and focus the field that needs fixing. Select Show again to move to the next item. Review and save stays disabled while a check fails (“Fix the problems listed under Checks first”).

Review and save

  1. Select Review and save (disabled until something changes).
  2. Check the review for what to look for:
    • Changed states and transitions appear as chips, with their changed fields named below each one.
    • Worth a look flags consequences you may not intend, such as a state that blocks moving objects.
    • If you removed a state that objects are in, choose where to move them under Move them to. Save and apply stays disabled until you do.
  3. Select Save and apply to publish a new version of the cust_workflows package. The page shows progress while it installs; reloading resumes the progress view.
  4. Choose Back to workflows or Keep editing.

Leaving with unsaved changes asks you to confirm; Discard returns to the last saved version.

Troubleshooting

Every custom workflow is stored in one shared package, cust_workflows, which can cause these save conflicts:

SituationWhat happensWhat to do
A package install is already runningThe editor shows “You can edit, but saving waits until it finishes.” If the install fails, the progress shows “The installation failed.”Select Try again.
Someone else saved firstSaving fails with “The workflow changed while you were editing”.Select Reload to get the current version (discards your unsaved changes), or Keep editing to keep your unsaved edits on the canvas.
Moving objects out of a removed state fails”Some objects were not moved” lists each space application with the reason.Select Move them again.
Objects are in a state the workflow no longer has, for example after a package install removed itThe editor shows “Objects are in states this workflow no longer has”.Choose a target state and select Move objects.