Skip to content

Workflows

A workflow says which statuses the records of a product go through and how they move from one to the next: a contract is drafted, then in force, suspended or cancelled; a A loss a client declares on a contract. It is checked against the contract's covers, assessed, approved and paid.Glossary → is declared, assessed, settled or refused. Your Your company as the suite knows it: its people, its records and its settings. Everything you see belongs to one organization, and nobody from another organization sees it.Glossary → writes its own: the products ship the records, you decide their life.

A The stages and statuses a kind of record goes through, and the moves allowed between them.Glossary → runs the records of one type, for example the contracts of Ops, either all of them or those of one scope, such as one A line of business you sell, such as home or motor insurance, with what its products have in common.Glossary →: the motor contracts can follow another workflow than the home ones. A record starts on the workflow of its scope, else on the one for every record of its type.

  • A status has a name in French, English and Arabic, a tone it is shown in, and a class: still open, or ended won, lost or cancelled. Reports count records by class, whatever the names.
  • Stages group statuses into the bar a record page shows (“Registration”, “Management”, “Closed”).
  • A status may list reasons, and ask for one: a contract is suspended “for unpaid What the client pays for a contract over a term, taxes and fees included. It is billed in installments.Glossary →” or “at the client’s request”.
  • A status may carry properties its product acts on, such as inForce for a contract: the product decides what a property does, the workflow decides which statuses have it.
  • A status marked final needs no way out. The checks warn about any other status with no way out.

A transition goes from one or more statuses (or from any) to one status, with a verb as its name (“Activate”, “Suspend”). It can ask for:

  • a permission of its own, beyond the One thing a role lets a person do in one area, such as seeing the users or approving a payment. On a role's page, each area takes a level: None, See, Work on or Full.Glossary → that changes records of the type: suspending a contract can be for managers only;
  • a reason, and fields that must have a value first, such as an end date;
  • a confirmation, worded in the three languages;
  • guards: A level of a product, such as "Third party" or "Comprehensive": the covers it includes, with their values.Glossary → that must hold, each with what to say when it does not, for example record.premium > 0 with “Set the premium first.” Guards are written in the same formula language as Rate and Studio and checked against the data of the record; nothing typed in a workflow ever runs as code.

Other products add their own rules to the moves: Control, for example, A piece of a page that you add, move and set up: in a Studio form, a question, a text, a picture or a section; in a Docs template, a heading, a paragraph, a table or a picture.Glossary → a move its approved rules forbid. A record page shows each move the person may make, and for the others, why not, in the person’s language.

A transition is manual (a person makes it), automatic (it runs by itself) or both. An automatic transition is tried by its triggers: a change of the record, a timer the workflow set, or an event of the product such as “contract paid”. It runs when its guards hold.

A move can, in this order (leaving the status, the transition itself, entering the new status):

  • set a field of the record from a formula, such as today’s date as the end date;
  • run an action of the product, such as closing the payment schedule of a contract;
  • send a message from a message template to the person or company in a A named set of rights, such as "Claims handlers", given to people and to API keys. People get what their roles allow, never a right on its own.Glossary → on the record (the The person or company who holds the contract and signs it. Someone else may pay for it.Glossary → of a contract), on one channel, where messages to clients are switched on (see Message templates). Consent and The hours during which text messages and notifications to your clients wait, so nobody is disturbed at night. E-mails and letters are never held.Glossary → apply as to any message: a person who opted out is kept as not sent, with why, in the record’s history, and the move goes on;
  • start or cancel a timer, which tries an automatic transition when it fires (“cancel after 30 days without payment”);
  • move the linked records through one of their transitions, such as the claims of a cancelled contract;
  • give a task from one of your task templates, on the record moved, given as the template says (“check the documents of the file”). Publishing refuses a template the organization does not have, or one for other records.

Each action runs once. The product decides which actions run within the move itself (the move fails if they fail); the others run right after it, are retried a few times when something is down, and are listed in the record’s history with their result. An action refused for a reason a person can fix stops at once; once fixed, a person who may change the record runs it again from the history.

A workflow is edited as a draft and published as versions that never change. Before publishing, the checks list every problem with its place: a status nobody reaches, a status with no way out that is not final, a guard that does not hold together with the data of the record, an action or a field the product does not offer, a timer that tries nothing. A The copy of a tariff, a form or a template that you change. Nobody outside your team uses it: calculations, respondents and documents use what you published.Glossary → with errors is not published; warnings are shown and allowed.

You can try a transition of the draft on a sample of record data: whether it would run, and what each guard says.

When your organization asks for it (setting Approve workflow versions), a new version waits for another person who publishes workflows to approve it. The person who published it cannot approve it.

New records start on the latest version. A record keeps the version it started on, so a change never surprises a record halfway. To bring open records to a new version, preview the move: how many records would move, from which status to which, and which statuses still need a place in the new version. Then run it: each record moves on its own, and a record that cannot move stays where it was, with why. Records that have ended keep their version.

Beside the status of a record, Alert me tells you in your bell when the record changes (someone changes its details or its status) or when it reaches a status you pick; that A message the suite raises when something needs a person, such as a deadline passed. The Alert Center lists them and says who is on each one.Glossary → closes by itself when the record moves on. Choose how often it looks: every 15 minutes, every hour or once a day. Only you get the A short message addressed to you, in the bell of every app: an invitation sent, a template to review, a mention.Glossary →, in the bell and by e-mail as you chose for Your own alerts on records in your notification preferences: the message says what changed, opens the record, and Acknowledge in the bell says you have taken it on. The alert only uses what you may see: if the record leaves your How far a role goes among the records that belong to teams: the person's own records, their team's, their team and the teams under it, or the whole organization.Glossary →, the alert stops and says why. Once set, the button shows how many you have on the record; its dialog lists them, each with Stop this alert, and says when one was switched off by an A person whose role lets them manage the organization in the console. Every organization starts with an Administrators role.Glossary → or could not look last time; the button counts only those still on. Your organization’s administrators see them in the Alert Center, where they can only turn them off or delete them.

The draft carries a revision: a save from an older revision is refused and names who saved since. A record carries one too: when two people move the same record at the same time, the second sees who moved it first, and reads where it stands again.

Each app edits the workflows of its own records, in its Settings > Workflows: Ops for its contracts (see Workflows in Ops). The entry appears by itself in every app whose records run on workflows, for the people who may read workflows; an app without such records shows nothing, and the The administration app of the suite, where your administrators manage its people, roles, connections and settings. It is also where everyone signs in.Glossary → has no workflow screen. The list shows the workflows of the app’s records, the The version of a Docs template that documents are made from today: the newest one whose date has come.Glossary → or that it is not published yet, and the last change. New workflow starts one from its name and the records it runs, with a first stage, a first status, a last status and the move between them; you build the rest. The editor is switched on per organization (feature Workflow editor); until then, the products run the workflows they install.

A workflow opens in its builder:

  • On the left, the statuses grouped by stage, then the transitions, with a search.
  • In the middle, the graph: one lane per stage, in order, the statuses placed so their lines cross as little as they can, and the name of each transition just before the status it goes to, with one arrow into it. It lays itself out: you read it, and click a status, a transition or a stage to open it. It sits on a canvas you move and zoom as in every editor: drag its empty space, use the wheel, or Ctrl and the wheel to zoom; Show everything and 100 % are beside it. It opens showing everything.
    • Each status a transition leaves has a line of its own, never along another line, that runs to the transition’s name and enters it at its own point; a small gap shows where two lines cross. A line back to an earlier stage is dashed, and its name is after the status it goes back to.
    • Point at a line to light its transition and read its name, where it leaves from and where it goes; the other transitions fade, so its path stands out. Click it to open the transition. Pointing at or tabbing to a status or a transition lights its lines too.
    • To add a transition, point at a status: a handle shows on its side facing the next stages. Drag it onto another status: a transition from one to the other is added, named “To” and the status it goes to, and its settings open. If a transition people start already makes that move, it opens instead. Press Esc, or let go anywhere else, to cancel. With the keyboard, Add a way out in the settings of a status adds a transition from it.
  • On the right, the settings of what is selected: a status (its name in each language, its stage, what it means, its colour, what the product does while a record is in it, its reasons, its ways in and out, and the actions run on entering and leaving it), a transition (who starts it, who may, the reason and the fields it asks for, the confirmation, its conditions, what starts it by itself, its actions and its timers) or a stage (its name and its order).
  • At the top, one row: back to the list, the workflow’s name and its version, who else has it open, the save status, the checks (a button with the number of problems: its list says each one in plain words, with Go there to open its place: a status nobody reaches, a status with no way out that is not final, a transition nobody may start, a condition with an error and where it is, a timer that starts nothing), Publish, and buttons to fold the side panes and to fill the window.
  • Right-click a status, a transition, a stage or the empty canvas for what you can do there, with the same names as in the settings: rename (F2), add a transition from or into a status, make records start there, duplicate (Ctrl+D), copy a status and paste it (Ctrl+C, Ctrl+V, also into another workflow), move a stage earlier or later, add a status in a stage, delete (Delete). Move to another stage, Change its colour and Change what it means open the list of their choices, the current one marked (each colour with its swatch): the one you pick applies at once, and Undo takes it back. The keys work while the editor has the focus, and ? lists them all; the editor’s commands are also in the command palette (Ctrl+K). Undo (Ctrl+Z) and Redo take back your own changes, and a delete says what went, with Undo.
  • Several statuses at once: hold Shift or Ctrl (Cmd on a Mac) and click statuses on the graph or in the list to select them together, or hold Shift and drag a box on the empty canvas around them. Their right-click menu then moves them to a stage, gives them a colour or a meaning, copies them or deletes them, all together; the settings say “3 statuses selected”, with what they share (their stage, what they mean, their colour) and “Several values” where they differ. Delete removes them all, with one message and one Undo. A click without a key selects one status again.
  • Find a status, a transition or a stage (Ctrl+F, also in the right-click menu of the empty canvas) lists what matches as you type, by its name, its key or its name in another language, each with where it is: the stage of a status, where a transition goes from and to. Enter shows the next match on the graph and opens its settings, Shift+Enter the previous one, and Esc closes the search (see Find).

Each change is saved in the draft a moment after you make it; the status beside the checks says when it is saved, or which field to complete first. Conditions and values are formulas, checked as you type, with the fields of the record offered as you write. Try on a transition runs it on a sample record you fill in, without saving anything, and says whether it would go through, or why not. Publish asks first, then makes the draft the next version.

The people who also have the workflow open show beside Publish, with where they are; click one to go there. On the graph, the status or the transition each of them has selected is outlined in their colour, with their name above it. When someone saves while you have changes not saved yet, the editor names them and lets you load their version or keep yours.

The side panes fold, and keep the width you give them, as you left them. When the editor is narrower than 1280 px, the statuses and the settings open as panels over the graph. Everything works with the keyboard, in French, English and Arabic, right to left included.

Moving around, zooming and folding the panes work as in every editor: see Working in an editor, and the keys and menus of the workflow editor.

  • Workflows: read: every member reads the workflows and where a record stands. On a record, the permissions of its type apply on top, within the A part of your organization or of your network, such as an agency, a distributor or a sales team. Teams can sit under one another, and a person belongs to one.Glossary → the person reaches: someone who cannot see a record cannot see its workflow either.
  • Workflows: edit: create workflows and change their drafts.
  • Workflows: publishing: publish, approve or send back versions, and move records between versions. A right of its own: editing workflows does not include it.

Moving a record needs the permission that changes records of its type, and the transition’s own permission when it has one.

The workflows are under /api/v1/core/workflows, with an A secret that lets another system call the suite for your organization, with the roles the key holds.Glossary → or a signed-in person (see Authentication).

RouteWhat it does
GET /core/workflows/definitionsThe workflows, with the version in force
POST /core/workflows/definitionsCreate a workflow for a record type and scope
PATCH /core/workflows/definitions/{key}Change the draft from its expectedRevision, or archive it
POST /core/workflows/definitions/{key}/checkThe problems publishing would find
POST /core/workflows/definitions/{key}/tryTry a transition of the draft on sample data
POST /core/workflows/definitions/{key}/publishPublish the draft as the next version, or send it to approve
POST /core/workflows/definitions/{key}/moves/previewHow many open records would move to a version
POST /core/workflows/definitions/{key}/movesMove them
GET /core/workflows/records/{type}/{id}Where a record stands, and the moves it may make
POST /core/workflows/records/{type}/{id}/transitionsMove a record, from its expectedRevision
GET /core/workflows/records/{type}/{id}/historyIts moves, with the guards and the actions run
POST /core/workflows/action-runs/{id}/retryRun a failed action again

Send Accept-Language to read why a move is blocked in French, English or Arabic. Each move is announced as the event bysur.core.workflow.transitioned.v1 (see Events). The API reference lists every route with its body and answer.

The The chat at the bottom of every app that answers questions about your work, with your permissions. It never changes anything until you approve.Glossary → and other AI agents read the workflows with core.workflow.definition.list and core.workflow.definition.describe, check a draft with core.workflow.definition.check, and read a record with core.workflow.record.state and core.workflow.record.history. Creating a workflow, changing a draft, publishing it and moving a record (core.workflow.definition.create, core.workflow.definition.draft.apply, core.workflow.definition.publish, core.workflow.record.transition) wait for the person to approve the exact call; a move made this way shows the assistant in the history (see Agents and MCP).

A workflow can be private while you build it: in New workflow, Who sees it offers Public or Private, and Share, in the editor’s top bar, makes it private or public, shares it with chosen people, teams or roles, or hands it on. A private workflow shows Private or Shared in the list. Shared with you to open only, it opens read only. Records keep moving on a published workflow whoever sees it. See Private and shared work.

  • Someone saved this workflow (or moved this record) since you read it: read it again, then make your change.
  • The workflow has problems to fix before it is published: fix each problem listed, at the place it names.
  • A rule of the workflow blocks this move: the message says which; change the record, then try again.
  • Say why: the status asks for a reason; pick one of those it offers.
  • Version waits for approval: approve or send it back before publishing another.
  • Say where the records go: the move needs a status of the new version for each status listed.