Workflows

If-then rules that run automatically at fixed points of the order process, and the workflow logs that show what happened.

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.

Screenshot: Workflow overview with search field, filters for client, trigger and status, and the workflows grouped by process step with If/Then chips and an active switch
Screenshot: Workflow overview with search field, filters for client, trigger and status, and the workflows grouped by process step with If/Then chips and an active switch

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

  1. 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.
  2. 1 General (Allgemein): Name (required), Description (Beschreibung) and Order (Reihenfolge) – smaller numbers are checked and executed earlier.
  3. 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.
  4. 3 If (conditions) (Wenn (Bedingungen)): define when the workflow applies (see below).
  5. 4 Then (Actions) (Dann (Aktionen)): define what it does (see below).
  6. 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.
  7. 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.

Screenshot: Sections 1 General with name, description and order and 2 Trigger with the trigger event, on the right the sidebar with Active, Always log and Save
Screenshot: Sections 1 General with name, description and order and 2 Trigger with the trigger event, on the right the sidebar with Active, Always log and Save

Trigger events

Process step Trigger event When it fires
Order intake When importing/creating an order (Beim Import/Anlegen eines Auftrages) A new order arrives or is created.
Order intake When editing an order (Beim Bearbeiten eines Auftrages) An order is changed.
Order intake When the order status changes (Beim Statuswechsel des Auftrages) The order status changes.
Order picking When picking begins (Beim Start der Kommissionierung) Picking of the order starts.
Order picking After picking is complete (Nach Abschluss der Kommissionierung) The order is fully picked – see Picking.
Packing & shipping label Packaging process has begun (Verpackungs-Prozess begonnen) The order is opened at the packing table.
Packing & shipping label Delivery note created (Lieferschein erstellt) A delivery note has been created.
Packing & shipping label Shipping label created (ShipCloud) (Versandlabel erzeugt (ShipCloud)) A shipping label has been created.
Packing & shipping label Packaging complete (single package/pallet) (Verpackung abgeschlossen (einzelnes Paket/Palette)) One package or pallet is finished.
Packing & shipping label Packaging complete (order complete) (Verpackung abgeschlossen (Auftrag vollständig)) The whole order is packed – see Packing.
Packing & shipping label Packaging process completed (Verpackungs-Prozess beendet) The packing process has ended.
Loading Loading complete (single package/pallet) (Verladen abgeschlossen (einzelnes Paket/Palette)) One package or pallet is loaded.
Loading Loading complete (order fulfilled) (Verladen abgeschlossen (Auftrag vollständig)) The whole order is loaded – see Loading.

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.

Group Condition Meaning
– Company (Owner) (Firma (Eigentümer)) The clients the workflow applies to. Several can be selected. Required.
Source (Herkunft) Platform(s) (Plattform(en)) Only orders from these platforms.
Source Module(s) (Modul(e)) Only orders from these order modules.
Delivery & shipping (Lieferung & Versand) Destination country/countries (Zielland/Länder) Only orders to these countries.
Delivery & shipping "Shipping Method (Incoming)" contains (Versandart (eingehend) enthält) Checks the shipping method sent by the external system. Combined with the action "Set/override shipping method" you can map external shipping methods to your freight carriers per client – e.g. "customer pickup".
Delivery & shipping Shipping method name (shop) contains (Versandart-Bezeichnung (Shop) enthält) Checks the name of the shipping method that the shop or the fulfillment network (e.g. JTL-FFN) sent with the order, such as "DHL Internat. Economy bis 2500€" – for such orders the incoming shipping method only names the carrier ("DHL"). Separate alternatives with a vertical bar; one match is enough.
Order data (Auftragsdaten) Comment contains (Bemerkung enthält) Text that must appear in the order comment.
Order data Order data includes (Auftragsdaten enthalten) Searches the customer order, additional data and both addresses – useful for interface identifiers that arrive in different fields. Separate alternatives with a vertical bar; one match is enough.
Order data Address contains (field + text) (Adresse enthält (Feld + Text)) Checks whether the selected field of the delivery address contains the text, e.g. a dealer customer number.
Order data House number missing in the delivery address (Hausnummer fehlt in der Lieferadresse) Switch. Applies when the delivery address has no house number – the same check as the hint Exception: house number missing in the delivery address in the order overview: the house number field is empty and neither the street nor the address supplement contains a digit ("Packstation 123" or "Hauptstr. 5a" count as present). Unlike the hint, the workflow checks right away when its trigger fires. See the example "Hold orders without a house number" below.
Order data Order ID (order_id) (Auftrags-ID (order_id)) Starts with (Beginnt mit), Contains (Enthält) or Ends with (Endet mit) a value.
Item (Artikel) Item conditions (Artikel-Bedingungen) Item rules with a rule and a Value / Search (Wert / Suche), see below.

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)
Screenshot: Section 3 If (conditions) with Company (Owner) and the groups Source, Delivery & shipping, Order data and Item
Screenshot: Section 3 If (conditions) with Company (Owner) and the groups Source, Delivery & shipping, Order data and Item

Actions (Then)

The actions are sorted into groups. A workflow can have several actions.

Group Action What it does
Shipping (Versand) Set/override shipping method (Versandart setzen/überschreiben) Sets the shipping method (freight carrier) of the order.
Shipping Set additional services (Zusatzleistungen setzen) Adds additional services of the shipping provider to the order, e.g. "Signature required". Existing ones are kept. Only what the order's shipping provider offers is set – with "Set/override shipping method" that is the shipping method selected there.
Shipping Allow partial deliveries (Teillieferung erlauben) Allows partial delivery for the order.
Shipping Create a return label from the shipping label (Aus dem Versandlabel auch ein Retouren-Label erzeugen) Creates a return label together with the shipping label. Only visible with the trigger Shipping label created (ShipCloud), otherwise a note is shown instead. If the order itself already requests a return label, the packing table creates it and the action is skipped – no second label.
Change order (Auftrag ändern) Set order status (Auftragsstatus setzen) Sets the order to the selected order status, e.g. Pending (Wartend) – the order is then not put on a picklist until someone sets it back to Open (Offen). If the order already has the status, nothing changes. The change appears in the order history. Statuses with the same name are one entry, as with Change status (Status ändern) in the order overview.
Change order Set priorities (Priorität setzen) Sets the order priority. Default without change is 10; the smaller, the more important.
Change order Add a comment (Bemerkung ergänzen) Appends text to the order comment (existing text is kept, a line break is inserted).
Change order Add packing instructions (Pack Hinweise ergänzen) Appends text to the packing information.
Change order Add packing note (Packhinweis ergänzen) Appends a short note (max. 128 characters in total), e.g. "Please include a greeting card". It appears in the middle of the screen for 5 seconds when the order is opened at the packing table.
Change order Customize Order / Adjust order items (Auftrag anpassen / Auftragspositionen anpassen) Sets selected order or position fields to a New Value (Neuer Wert) when the conditions match. With an item rule (SKU, name, category) only the matching positions are changed.
Add item (Position hinzufügen) Add packaging/product (Verpackung/Produkt hinzufügen) Adds packaging material or a product as an additional position – only once per order. Choose the Product type (Produkttyp) and the item.
Print (Drucken) Print delivery slip (Lieferschein drucken) Prints a delivery note at the packing station; the Delivery Note Template only appears once you switch the action on. It also prints every PDF attached to the order with Print at packing station (Am Packtisch drucken) – e.g. a delivery note supplied by the customer or an insert (see Order documents). The template is optional: without a template the packing station prints only the uploaded documents, with a template it additionally prints the delivery note generated from it. Number of copies (Anzahl Exemplare, 1–20, default 1) appears next to the template and applies to the delivery note generated from the template and to uploaded delivery notes; other documents such as inserts or EMCS documents are printed once. Reprinting from the order details still prints one copy.
Print Print invoice (Rechnung drucken) Prints the invoice on the A4 printer of the packing station; the Invoice Template (Vorlage für Rechnung) only appears once you switch the action on. With a template, the invoice is generated from the template. Without a template, the packing station prints the invoice attached to the order (document type Invoice – Rechnung, e.g. sent along by the shop) – no matter whether Print at packing station (Am Packtisch drucken) is set to yes or no there. Number of copies (Anzahl Exemplare, 1–20, default 1) applies to every invoice of the order. The invoice goes through the print approval (Druckfreigabe) for the document type Invoice. If Print delivery slip and Print invoice are both active in the same workflow, an invoice with Print at packing station set to yes is printed only once – via Print invoice, not again with the delivery note. If the order has no invoice and the workflow has no template, the workflow logs show the run with a red Status and give the reason under Message (Nachricht).
Print Print inserts (PDF from Media Management) (Beileger drucken) Prints a PDF from the media management, Number of copies 1–20.
Print Print label (label printer of the packing station) (Etikett drucken) Prints a label from a PDF template of the document type "Label (order / pickup label)" on the label printer of the packing station, Number of labels 1–20 – e.g. a pickup label for customer pickups. Create label template opens the PDF Creator with a matching skeleton. Needs a trigger from the packing station.
Email (E-Mail) Send Email (E-Mail senden) Sends an email based on an Email template – recipient, subject and text come from the template (see Email templates). Send only once per order (Nur einmal pro Auftrag senden) is recommended for shipping confirmations, because shipping triggers can fire several times per order.
Cron job (Cronjob) Run a cron job (Cronjob ausführen) Calls the selected cron job of the system. X-Sitter passes the company, the order ID, the packing station and – if filled in – the source folder along with the call.
Cron job Source Folder (for PDFs) (Quell-Ordner (für PDFs)) Optional folder in which to search for PDFs. The base is always the folder "remote/". It is passed to the cron job.
Screenshot: Section 4 Then (Actions) with the groups Shipping, Change order, Add item, Print, Email and Cron job
Screenshot: Section 4 Then (Actions) with the groups Shipping, Change order, Add item, Print, Email and Cron job

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.

  1. Attach the PDF to the order: document type Delivery note (Lieferschein), Print at packing station (Am Packtisch drucken) set to yes – see Order documents.
  2. 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.
  3. 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.

  1. 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.
  2. 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".
  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.

  1. 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.
  2. 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.
  3. 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.
Screenshot: Group Order data of section 3 If (conditions) with the switch House number missing in the delivery address switched on
Screenshot: Group Order data of section 3 If (conditions) with the switch House number missing in the delivery address switched on
Screenshot: Summary of the workflow House number missing: when importing/creating an order, for one client, If House number missing, Then order status Pending and send email
Screenshot: Summary of the workflow House number missing: when importing/creating an order, for one client, If House number missing, Then order status Pending and send email
  • 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

  1. Open WMS › Settings › Workflow logs (WMS › Einstellungen › Workflow-Logs).
  2. Filter by owner (All owners – Alle Eigentümer), status and Order (Auftrag).
  3. 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.

Screenshot: Workflow logs with filters and entries showing trigger, matched, actions and status
Screenshot: Workflow logs with filters and entries showing trigger, matched, actions and status

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.

Message Cause Solution
Please enter a name. / Please select a name and at least one company. (Bitte einen Namen vergeben. / Bitte Name und mindestens eine Firma auswählen.) Required fields missing. Enter a name and select a client.
The selected email template was not found; the action "Send email" was not saved. (Die gewählte E-Mail-Vorlage wurde nicht gefunden …) Template deleted or belongs to another company. Choose the template again.
Error saving the workflow. (Fehler beim Speichern des Workflows.) Technical error. Save again.
The workflow could not be switched / copied / deleted (Der Workflow konnte nicht umgeschaltet / kopiert / gelöscht werden) Technical error or missing permission to edit. Reload the overview and try again; otherwise ask your administrator for the permission.
Workflow not found. (Workflow nicht gefunden.) Invalid link or the workflow was deleted. Open the workflow from the overview.
No workflows were found for the selected filters. / No workflows have been created yet. Empty list. Click Reset filter or create a workflow with Create now (Jetzt anlegen).