Workflows
Workflows are if-then rules that X-Sitter checks and runs automatically at certain points in the order process. Examples:
- set a shipping method when an order is imported,
- add packaging material from a certain weight,
- print an insert (e.g. a flyer) when packing,
- send an email to the end customer after shipping.
The workflow logs show which workflows applied to which order.
Before you start
- Your user needs the permissions for Settings (Einstellungen) and Workflows in the WMS menu; creating and editing is a separate permission – ask your administrator.
- At least one client – a workflow always applies to one or more clients – see Clients.
- For Send Email: an email template – see Email templates.
- For Print delivery slip / Print invoice / Print label: PDF templates – see PDF documents. For Print delivery slip and Print invoice the template is optional: if a delivery note uploaded to the order should be printed, the document on the order is enough. Print invoice without a template prints the invoice attached to the order (document type Invoice – Rechnung) – see Order documents.
- For inserts: a PDF in the media management of your company settings – see Media.
- For Set/override shipping method: the freight carriers of your warehouse – see Freight carriers.
Workflow overview
Open WMS › Settings › Workflows (WMS › Einstellungen › Workflows).
- At the top you filter with the search field Search workflow, condition or action (searches name, description, clients, conditions and actions), All clients (Alle Mandanten), All triggers (Alle Auslöser) and the status All / Active / Paused (Alle / Aktiv / Pausiert). The filters apply immediately; if nothing matches, Reset filter (Filter zurücksetzen) clears them. Next to them are the counts Workflows, Active and Paused.
- The workflows are grouped by process step – Order intake (Auftragseingang), Order picking (Kommissionierung), Packing & shipping label (Verpackung & Versandlabel), Loading (Verladung) – and within that by trigger. Within a trigger they are listed in the order in which they run; the number on the left is their position.
- Each row shows the name and description, under If (Wenn) the clients and conditions and under Then (Dann) the actions as short chips. No action set (Keine Aktion hinterlegt) warns about workflows that do nothing. Paused workflows are faded and carry the badge Paused, Log marks workflows with Always log.
- The switch in the row activates or pauses the workflow immediately ("Workflow is active" / "Workflow is paused").
- The ⋮ menu offers Duplicate (Duplizieren) and Delete (Löschen). Duplicate creates a copy with all settings ("… (copy)") that starts paused, and opens it. Delete asks "Really delete workflow “…”?"; the entries in the workflow logs are kept.
Create a workflow
- In the overview click New workflow (Neuer Workflow) – or Edit (Bearbeiten) on an existing workflow. The editor has four sections and a sidebar on the right.
- 1 General (Allgemein): Name (required), Description (Beschreibung) and Order (Reihenfolge) – smaller numbers are checked and executed earlier.
- 2 Trigger (Auslöser): choose the Trigger event (Trigger-Ereignis) – when the workflow is checked (see table below). The list is grouped by process step.
- 3 If (conditions) (Wenn (Bedingungen)): define when the workflow applies (see below).
- 4 Then (Actions) (Dann (Aktionen)): define what it does (see below).
- In the sidebar you switch Active (Aktiv) and Always log (Immer loggen) on or off. The Summary (Zusammenfassung) below shows in plain words while you fill in the form When the workflow runs, For which clients, If which conditions apply and Then what happens.
- Click Save (Speichern) (or Ctrl/Cmd + S). You see "The workflow has been created." or "The workflow has been saved." If a required field is missing, the page jumps to it.
When editing, the sidebar also shows Last modified (Zuletzt geändert) as well as Duplicate and Delete. If you leave the page with Unsaved changes (Ungespeicherte Änderungen), your browser warns you.
Trigger events
Conditions (If)
At the very top is Company (Owner) (Firma (Eigentümer)), below it collapsible groups. Each group shows how many fields are set (e.g. "1 set"); groups with fields set are expanded when you open the workflow. All filled-in conditions must apply – empty fields are not checked. For lists, one match is enough.
Item rules
- Contains at least one item from category X
- Contains only items of type Y
- Contains specific item (SKU)
- Contains part of the product name
- The total number of items is at least N
- Stock of item (SKU) falls below N (value as SKU:N)
- The number of positions is N
- The total weight of the items is at least / no more than N kg
- At least one item weighs at least N kg
- Each item weighs no more than N kg
- Insufficient stock available for the item position (needs no value)
Actions (Then)
The actions are sorted into groups. A workflow can have several actions.
Example: print an uploaded delivery note at the packing station
A client supplies its delivery note as a PDF, and the packing station should print exactly this PDF – without a delivery note template of your own.
- Attach the PDF to the order: document type Delivery note (Lieferschein), Print at packing station (Am Packtisch drucken) set to yes – see Order documents.
- Create a workflow (once per client):
- 2 Trigger: Packaging complete (order complete) (Verpackung abgeschlossen (Auftrag vollständig)).
- 3 If: Company (Owner) (Firma (Eigentümer)) = the client. No further conditions are needed.
- 4 Then: in the group Print switch on Print delivery slip (Lieferschein drucken) and leave the Delivery Note Template empty.
- In the sidebar switch on Active and click Save.
- The packer selects a workstation with a packing table – see Workstation. Without a packing table the PDF is only stored, not printed.
As soon as the order is finished at the packing table, the uploaded PDF is sent to the printer of the packing station. If the order has no document with Print at packing station, the workflow prints nothing. With a template selected as well, it prints both: the generated delivery note and the uploaded PDF.
Example: print the invoice several times for foreign orders
For a client's orders to Switzerland, the invoice the shop sent along should come out of the packing station's printer three times after packing – e.g. for the customs papers.
- Check that the invoice is attached to the order: document type Invoice (Rechnung) – see Order documents. Print at packing station (Am Packtisch drucken) may stay on no.
- Create a workflow:
- 1 General: Name, e.g. "Invoice Switzerland".
- 2 Trigger: Packaging complete (order complete) (Verpackung abgeschlossen (Auftrag vollständig)) – the trigger comes from the packing station; only then is the printer known.
- 3 If: Company (Owner) (Firma (Eigentümer)) = the client. In the group Delivery & shipping (Lieferung & Versand) Destination country/countries (Zielland/Länder) = Switzerland.
- 4 Then: in the group Print (Drucken) switch on Print invoice (Rechnung drucken), leave the Invoice Template (Vorlage für Rechnung) empty and set Number of copies (Anzahl Exemplare) to 3.
- In the sidebar switch on Active (Aktiv) and click Save (Speichern). The Summary (Zusammenfassung) shows "Print invoice × 3".
- Check after the first order: in the
workflow logs the column Message (Nachricht) lists the printed files – or why nothing was printed.
If the print approval (Druckfreigabe) is switched on for the document type Invoice, the three copies wait there until someone approves them.
Example: hold orders without a house number
An order arrives without a house number in the delivery address. It should not be picked yet, and someone should be told – for example the customer service of the client.
- Create an email template with the recipient who should be notified, and add the order number and the delivery address from the placeholders of the template – see Email templates. Choose All clients (Alle Mandanten) as Client (Mandant): one template then serves all clients of the workflow.
- Create a workflow:
- 1 General: Name, e.g. "House number missing".
- 2 Trigger: When importing/creating an order (Beim Import/Anlegen eines Auftrages).
- 3 If: Company (Owner) (Firma (Eigentümer)) = the clients. In the group Order data (Auftragsdaten) switch on House number missing in the delivery address (Hausnummer fehlt in der Lieferadresse).
- 4 Then: in the group Change order (Auftrag ändern) set Set order status (Auftragsstatus setzen) to Pending (Wartend). In the group Email (E-Mail) choose the Email template (E-Mail-Vorlage) and switch on Send only once per order (Nur einmal pro Auftrag senden) – the trigger can run several times for the same order, e.g. when an open order is saved again.
- In the sidebar switch on Active (Aktiv) and click Save (Speichern). The Summary (Zusammenfassung) shows the whole rule.
- When the email arrives, correct the address in the order (pencil Edit address / documents – Adresse / Dokumente bearbeiten; while the order is Pending, the order form only allows the address, numbers, shipping options and documents) and set the order back to Open (Offen) with Change status (Status ändern) in the order overview. It goes onto the next picklist. Saving the restricted order form does not run the workflow, so the order is not put on hold again.
- Choose Pending (Wartend), not Waiting (Wartet): Pending is the status for orders that are held back, and the exception filter of the order overview lists it as an exception of its own.
- A digit in the street or the address supplement counts as a house number – parcel lockers and post offices ("Packstation 123") do not match. Addresses in countries without house numbers (e.g. rural addresses in Ireland) do match; limit the workflow with Destination country/countries (Zielland/Länder) if needed.
Which workflows run
- Only active workflows of your company with the matching trigger, whose client list contains the client of the order, sorted by Order (Reihenfolge) (on a tie the older one first) – exactly as they are listed under their trigger in the overview.
- In the order details you can run the workflows again with Run workflow again (Workflow erneut ausführen). This re-runs the workflows for "Packaging complete (order complete)" – see Order details. You see "The workflow has been restarted."
- To stop a workflow, pause it with the switch in the overview or switch off Active in the editor's sidebar. If you no longer need it at all, delete it via ⋮ › Delete.
Workflow logs
- Open WMS › Settings › Workflow logs (WMS › Einstellungen › Workflow-Logs).
- Filter by owner (All owners – Alle Eigentümer), status and Order (Auftrag).
- The columns show Time (Zeit), Trigger, For companies (Für Firma), Item (Artikel), Matched, Actions, Status and Message (Nachricht).
Logs are kept for one month.
Troubleshooting
My workflow does not apply. Check: is it Active (not Paused), is the trigger right, is the client selected in Company (Owner), are the conditions met? With Always log you also see checks in the workflow logs where the conditions were not met.