Skip to content

ENفارسی

HORUPH

Build a workflow

Create a workflow, choose how it starts and what it does, and publish it so it runs. You need the Author permission to build one and Manage to publish it.

Create it

  1. Open Workflow & Approvals → Workflows and choose New workflow.
  2. Enter a Name and a Code. The code is a short unique name in lowercase letters, digits, - or _, such as quote-approval.
  3. Choose Create workflow. Its window opens with a draft that ends at once.

Edit its steps

In the workflow's window, choose Edit steps. Everything you change stays in the draft until you choose Save draft; saving checks the whole draft, and the published revision keeps running meanwhile.

How it starts

StartsWhat happens
By handSomeone with Operate chooses Start run and fills in the values you define under Add value. A value can be text, a number, yes or no, a date, a date and time, or a person or organization from the Party Directory.
When another addon reports an eventChoose the Event. Tick the Values to keep that the run needs; it carries only those. Under Only when, add comparisons to run for some occurrences only, or leave it empty to run for every one.
Once, at a set timeChoose the date and time.
RepeatedlyChoose Every (minutes) and when it is Starting.

Scheduled workflows carry no values. The events and operations you can choose are whatever the enabled addons offer now; when an addon is turned off, its events and operations disappear from the list.

Steps

Choose First step, then add steps with the buttons under the list. Each step has a name you can change, and each says which step comes next.

  • Operation runs something another addon offers, such as creating a task. Fill each value with a Fixed value or From a value of the run. Attempts, First retry after and Later retries decide how often it tries again when the other addon reports a temporary failure.
  • Condition compares values of the run and goes on to If true or Otherwise.
  • Wait pauses For a while, or Until a time in a value of the run.
  • Approval asks people to approve or reject. See Decide approvals for who may decide.
  • Finish ends the run as succeeded or failed. Every workflow needs at least one.

When a step fails for good decides what happens after an operation fails and has no attempts left: stop and mark the run failed, or undo the completed steps, newest first. Undoing needs every operation to offer an undo.

Important

Every step must be reachable from the first one, steps cannot loop back, and an approval needs at least one approver. Otherwise saving says the draft isn't complete.

Publish it

  1. In the workflow's window, choose Publish and confirm.
  2. The workflow becomes Active. New runs use this revision.

You can publish only if you hold every permission the workflow's operations act with, because every run acts on your behalf. If you later lose one of them, or can no longer sign in, its runs stop and wait for someone to resume them. See on whose behalf a workflow acts.

Change a published workflow

Choose Start new draft, edit it, then publish it. Runs already under way keep the revision they started on.

Stop or retire it

  • Deactivate stops new runs from starting; runs under way continue. To reactivate it, choose Start new draft and publish the draft.
  • Archive retires it for good: no new runs and no more changes. Its revisions and runs stay readable.

If something goes wrong, see Troubleshooting.