Stegvis

Stegvis guide

This guide uses one running example to show how you model a process and how your team works with it later. If you only work on tasks, you can jump straight to Working with processes.

Overview and terms

Stegvis combines two ways of working: fixed workflows that should always run the same way, and case work, where people decide, ask questions and hand out tasks on the fly. A few terms come up everywhere:

TermMeaning
ProcessThe model of a workflow, drawn as a diagram – such as “Procurement” or “IT approval”.
CaseOne concrete run of a process – such as the request for a particular video conferencing tool. A case has data, files, notes and a history.
TaskA work step for a person or a team. Tasks come from the process or are created on the fly in the case.
FormThe input screen of a task or of starting a case.
Process contextThe data of a case, i.e. its variables. All forms of a process read from and write to the same context.
TeamA group of people with a shared task pool and an optional team lead.

Everyone can start cases and work on tasks. On top of that there are three roles, assigned in the administration:

The Design and Analytics roles apply to processes without a group. If a process belongs to a process group, the group determines who may start, design and analyse it.

Try it out

The quickest way is the online demo: organisation demo, sign in with the same test accounts as below. Everyone shares this demo; it is reset regularly and sends no e-mails – please do not enter real data.

To try it on your own computer, Stegvis only needs Python 3; the data is stored in an SQLite file. A reverse proxy, a mail server and STEGVIS_BASE_URL only come in for production use (see requirements). A good start is the demo mode with example processes and test accounts:

pip install -r requirements.txt
STEGVIS_DEMO=1 python app.py

Stegvis is then available at http://127.0.0.1:8000. When signing in, you also enter the organisation: in demo mode demo, then admin/admin or, as staff, anna, ben or clara (password demo each). You reach the platform administration with the organisation system and admin/admin.

The example processes

The demo organisation comes with six ready-made processes – from a short introduction to integration with other systems – plus sixteen small lessons. Open them under Processes to look at them in the editor, or start a case under Start case. The demo content is in German, so the German names are given in brackets.

ProcessWhat it is aboutWhat it shows
IT approval (IT-Freigabe)Requesting new software; data protection and/or IT operations review itthe running example of this guide: inclusive gateway, default path, a task for the requester; one form with five modes
Procurement (Beschaffung)Purchase request with line itemstable with totals, calculation, parallel review, decision table, decision buttons; one form with six modes – every office sees the whole request and edits only its own section
Quote approval (Angebotsfreigabe)Calculating a sales quote with discounts and having it approvedcalculation of discount, contribution margin and margin; credit check via an interface; two decision tables (approval level, payment terms); approval by the person or team determined by a rule; specialist reviews only when needed; renegotiation loop; the customer’s decision via link; one form with eight modes
Service call (Serviceeinsatz)A fault report for a PV system, heat pump or air conditioner – up to the invoiceentry via a public form or from an ERP system via API; priority and response time via decision table; weather check for roof work with automatic rescheduling; appointment confirmation by e-mail to the customer – if it fails, a phone call follows as manual contact; assignment to the scheduled person – the list shows only the team “Technik & Service”; follow-up call; billing depending on the service contract; one form with seven modes – the public form shows only the mode for the report
Support ticket (Support-Ticket)A customer request through to its solution, with specialist departments and questions to the customerentry via a public form (/p/demo/support); priority and resolution deadline by formula; conditional modes depending on the chosen next step; questions to specialist departments as often as needed, one after the other (assignee from a team field), with a log; follow-up question and confirmation of the solution via link; reminder and escalation via deadline exits – step by step in the example
Contract renewal (Vertragsverlängerung)Review running contracts in good time: renew, terminate or renegotiatedates calculated in working days; waiting until the review date; review with a deadline in working days, reminder and escalation via deadline exits; renegotiation as a loop; waiting until the contract ends; a deputy during holidays; working calendar for Bavaria – step by step in the example

So that it does not look empty, the demo contains about 265 cases from the past four months – most of them closed, a good fifth still in progress, some tasks overdue. Inbox, statistics and audit trail thus show from the start what Stegvis looks like in everyday use.

You can create more test cases or reset the demo by hand at any time – in the program folder, with the same data folder (STEGVIS_DATA) as the running server:

python testdaten_generator.py --tenant demo               # add more cases
python testdaten_generator.py --tenant demo --faelle 20   # 20 cases per process
python testdaten_generator.py --reset                    # set up the demo from scratch

Resetting only affects the organisation demo: its data, files and sessions are replaced by a fresh state with new cases. With STEGVIS_DEMO_TENANT=1 this also happens automatically every STEGVIS_DEMO_RESET_HOURS hours.

The test people (password demo each) have different roles and teams:

TeamLeadMembers
Vertrieb (sales)annaben, david, emma
Technik & Service (engineering & service)benanna, felix, greta
IT-Betrieb (IT operations)benjonas
Buchhaltung (accounting)clarahannah
Datenschutz, Recht (data protection, legal)claralena
Managementadminmira
Kundenservice (customer service)emmahannah, david
Servicemanagement (service management)miraadmin

admin and anna may design; admin, clara and mira see the statistics. Sign in as different people one after the other to follow a case through all its stations. In the demo, david is currently on holiday and emma stands in for him (see Absence and deputies).

Getting to know Stegvis: sixteen lessons

The large examples show what Stegvis looks like in everyday use. If you want to understand a single feature, you will find it under Start case in the section Stegvis kennenlernen (getting to know Stegvis): sixteen small processes with one to three steps, one feature each. A note at the top of the form tells you what to try; the instructions of each task explain why it exists right now. Most tasks end up with you, and a case takes two or three minutes.

Lessonshowsmore on this
01 · Entweder – oderdecision with a default pathGateways
02 · Nur, was nötig istinclusive gateway: none, one or several paths in parallelGateways
03 · Rechnentable with a formula column and total, calculation stepCalculations
04 · Regeln in einer Tabelledecision tableDecision tables
05 · Ein Formular, drei Schritteform modesModes
06 · Pflicht ab einem Betragfields appear or become required as soon as a condition appliesConditional modes
07 · Wer bekommt die Aufgabe?assignment from the case data to a person and a team pool; the people list shows only the chosen teamSetting up tasks
08 · Frist und Rückrufdue date, notification as a phone call with a resultNotifications
09 · Phasen eines Fallsmilestones set the phaseElements
10 · Rückfrage beim Kundentask for an external person via linkTasks for external people
11 · Von außenpublic form at /p/demo/lernen-anfragePublic form
12 · Fallakte mit Runden Prodocument versions and the “Flow” tab; without Pro an ordinary workflowVersions and flow
13 · Jede Zeile eine Aufgabeone task per table row: assignment from a column, block “This row”, note and attachments per row, overall result by formulaTask per table row
14 · Ein PDF für mehrere Stellensplit a PDF on completion (one part per row), review per part, merge the review file by original pages; needs the package pypdf on the serverSplitting PDFs
15 · Warten, erinnern, eskalieren“Wait” (one minute), then a task with two deadline exits: a reminder after 2 minutes, the escalation after 5 minutes – leave the task lying and watchWait and deadline exits
16 · Vertretung bei Abwesenheitchoose David as recipient: the picker shows “away until …, deputy: Emma Schulz”, and the task ends up with EmmaAbsence and deputies

All teams may start the lessons, and anna may change them in the editor. There are no prepared cases for them – start them yourself, as often as you like.

For real use on a server there is a separate installation guide for Linux; commands, settings and backup are described under Operations.

Modelling a process

As a running example we build an IT approval: anyone who wants to introduce new software submits a request. If the software processes personal data, the data protection team reviews it. If it is to run on your own servers, IT operations reviews it. Both may be needed in parallel, only one of them – or neither. Afterwards the requester plans the roll-out.

You will also find the finished process in the demo – for comparison or as a shortcut.

The finished IT approval process in the editor.
The goal of this chapter: the finished “IT approval” process in the editor.

To model processes you need the Design role. The order of the following sections is a recommendation – you can switch between diagram, context and forms at any time.

1. Preparation: creating teams

Tasks are mostly assigned to teams. So first create the teams involved, in the example “Data protection” and “IT operations”: under Teams (or, as an admin, under Administration) create a new team, add members and, if needed, choose a team lead. Team leads can then maintain their team themselves.

2. Creating a process

Under Processes choose New process and give it a name. The editor opens with three areas:

If no element is selected, the right-hand area shows the settings of the whole process. Two of them are worth setting right at the start:

3. Defining the process context

The process context describes which data a case carries. In the Process context tab you create variables – each with a technical key (e.g. betrieb), a label (“Operation”) and a type. For our example:

KeyLabelType
titelWhat is to be introduced?Text
zweckWhat is it needed for?Text
datenschutzPersonal dataYes/No
betriebOperationStates: onprem, cloud
Process context tab with the variables of the example.
The “Process context” tab lists all variables; shown here is the demo version with three more for reviews and roll-out. Fields from forms, result buttons and calculations are also detected automatically.

An overview of all types – from amounts of money to tables with a totals row – is under Field types.

Protected variables

If you tick Protected for a variable, it can only be changed through task forms, the start form and the automation – not freely in the Data tab of a case. That way, for example, “Budget available” can only be set by accounting in its review task. Results of calculations, decision tables and decision buttons are always protected. In the Data tab of a process case, everyone except admins can only change the fields that the data view makes editable anyway.

4. Designing the start form

The quickest way is right in the process editor: click the start and choose + New form … under Start form. Enter the name “IT request” – if you like, Stegvis immediately adds all variables of the process context as fields. The form then belongs to the process and is set on the start; Edit ↗ opens it in the form designer in a new tab, while the process stays open. All forms of the process are in the process editor’s Forms tab: there you see where they are used, and you can create, edit, duplicate, import and export them.

In the designer, the variables of the process context are at your disposal: drag them from the list on the left onto the canvas. On the right you set the field settings; Preview shows the result. The form selection in the process editor only shows forms of this process.

Form designer with the IT request form.
The form designer: variables from the context on the left, the form in the middle, field settings on the right. At the top you switch between structure and preview and choose the mode.
Formatted text

For a multi-line text field you can switch on Allow formatting (bold, italic, lists, links) in the field settings. Whoever fills in the field then gets a toolbar for bold, italic, bulleted list, numbered list and link, plus a preview (see Working on tasks). What is stored is still plain text with a few characters such as **fett** or - Punkt that remain readable without formatting – formulas, conditions, exports and e-mails see exactly this text. Formatting is off by default so that older texts with stray asterisks do not suddenly look different.

One form, several modes

Usually all steps of a process see the same data – the request is submitted, later reviewed, approved and completed. Instead of creating a separate form for each step, you design one form with all fields, structured in sections, and create modes. A mode determines for each field what it does in a step:

SettingEffect
Editthe field can be filled in (required as designed in the form)
Requiredthe field must be filled in before the step can be completed
Readthe value is shown but cannot be changed
Offthe field does not appear in this step
Defaulttakes the setting of the section – or, if the section does not set anything, that of the whole mode (“Fields without their own setting”)

Here is how: in the form designer, open the Mode selection at the top next to Structure and Preview and choose + New mode …. Everything read-only (review) is usually a good starting point. Each card then shows a switch; on a heading it applies to the whole section. The Preview shows the form as the person working on it sees it in the chosen mode. On the right you see where the mode is used.

For an overview of all modes at once, use Mode table … at the top of the designer: each row is a field in the order of the form, each column a mode. In each cell you switch between Default, Edit, Required, Read and Off; the colour shows the effect, and dashed cells are set to “Default” and name in brackets what they inherit. The keyboard is fastest: Tab jumps to the next cell, the first letter selects. The row Mode default determines what applies to fields without their own setting. In the column header you rename a mode, reset it entirely to “Default” with ↺, or delete it with ✕ as long as it is not used anywhere; + Mode adds a new column. Only Apply writes the changes to the form; you then save as usual.

Mode table of the IT request form: fields as rows, the five modes as columns.
The mode table of the IT request: the “Reviews” section is off for the request, and the remarks are only required in their respective review.

In the process editor, you choose the matching mode next to the form for the start form, for each task and for the data view. The example processes “IT approval” and “Procurement” work like this – with one form for all steps each.

Good to know

Stegvis also checks modes on the server: fields that a step may only read cannot be changed there, and required fields are checked on completion. A mode that is used in a process or in open tasks cannot be deleted; renaming is possible at any time. “Off” only hides a field – the value remains visible in the case and in the audit trail.

Conditional modes: rules per field

Sometimes what a field should do depends on the data: a justification is only required above a certain amount, the company name only for business customers. For this, choose Rule … in the mode table instead of a fixed value. A small editor opens above it:

The cell then shows the short form, such as “if betrag > 5000: Required, otherwise Off”; clicking it opens the rule again. On a heading, the rule applies to the whole section. The cards in the designer say “Rule”, and the mode’s Preview switches as you type – so you can try out a rule right away.

Mode table of the procurement process with the rule editor open: a justification is required from 5,000 euros.
The rule of the demo procurement: for the approval, management must justify its decision from €5,000 net; below that it may.

In the demo: the lesson “06 · Pflicht ab einem Betrag” and the approval in “Procurement”.

5. Drawing the diagram

Back in the process editor, drag elements from the bar on the left onto the canvas. You create connections by dragging from the blue dot on the right of an element to another one. Move the canvas by holding the mouse button down on the background; zoom with the mouse wheel.

Stegvis routes the lines itself: paths back to an earlier step run around below or above the elements instead of covering the forward line, and several connections on one element get their own ports. If the diagram has become cluttered, Arrange in the toolbar at the top arranges all elements along the flow: from left to right, the main path on one line, branches above and below. Ctrl+Z undoes this.

ElementWhat for
StartBeginning of the workflow. This is where you choose the start form.
TaskA work step for people – with assignment, form and deadline.
DecisionExactly one path continues: the first whose condition applies (XOR).
ParallelAll paths start at the same time; when joining, it waits for all of them (AND).
Inclusive (OR)Every path whose condition applies starts; when joining, it waits only for those.
MilestoneMarks a phase reached, e.g. “Approved”. The phase appears in the case and can be queried in conditions.
CalculationCalculates values with formulas or calls an external interface.
Decision tableDerives values from rules, e.g. the required approval level.
NotificationSends an e-mail with case data – to people, teams or external addresses – or creates a task for a manual contact (see Notifications).
WaitHolds the path – for a duration or until a date from the case data (see Wait and deadline exits).
EndEnd point of a path. Optionally, the case is closed here.

For the example you need: a start “Request submitted”, an inclusive gateway “Which reviews?”, two tasks “Review data protection” and “Review operations”, a second inclusive gateway for joining, the task “Plan roll-out” and an end “Approved”. Connect them as in the picture above – the first gateway gets three outgoing paths: to both reviews and directly to the second gateway.

Then click the start and check under Properties that the start form “IT request” is set – if you created it right here in step 4, it is already there. On the end, tick Close the case when the process ends here.

6. Setting up tasks

Click a task to set it up:

Properties of the task Review data protection.
Properties of the task “Review data protection”: assigned to the data protection team.

In the example, the two reviews go to the teams “Data protection” and “IT operations”, and “Plan roll-out” goes to the Person who started the case. If a person is away, their deputy gets the task (see Absence and deputies).

In the demo: “07 · Wer bekommt die Aufgabe?” assigns tasks from the case data to a person and to a team pool.

One task per table row

Sometimes each row of a table has its own owner: the items of an order go to sales, the terms and conditions to the legal department. For this, choose a table from the process context under For each row of in the task. When the case reaches the step, one task is created per row; the case moves on only when all of them are done. If the table is empty, the step simply passes.

While tasks per row are open, the table is locked for everything else: in other tasks it is read-only, in the Data tab also for admins. History and audit trail list each row as a separate step with its name.

In the demo: “13 · Jede Zeile eine Aufgabe” distributes the review of an order to several teams.

7. Gateways: decision, parallel, inclusive

Stegvis has three ways of splitting a workflow. The choice depends on how many paths should run:

GatewaySplittingJoiningTypical example
Decisionexactly one path–Approved or rejected?
Parallelall pathswaits for allalways review budget and supplier at the same time
Inclusiveall paths whose condition is metwaits only for those startedreview data protection and/or operations – depending on the request

For the IT approval, the inclusive gateway is the right one: for a cloud service with personal data only the data protection review runs, for an internal application without personal data only the operations review, and for an internal application with personal data both run in parallel.

Case for time tracking: data protection is done, the joining gateway waits for the operations review.
A case with both reviews: data protection is done, and the joining gateway (yellow) is still waiting for “Review operations”.

In the demo: “01 · Entweder – oder” (decision with a default path) and “02 · Nur, was nötig ist” (inclusive gateway).

The matching gateway for joining

What an inclusive gateway splits must be joined by an inclusive gateway. A parallel gateway would wait for all paths – including those that were never started – and the case would get stuck. The model check warns about this mistake.

8. Defining conditions

Conditions belong to the connections leading out of a decision or an inclusive gateway. Click the connection; the condition builder opens on the right.

Condition builder for the connection to the data protection review.
The condition for the path to the data protection review: “Personal data is Yes”. Below the builder, the condition is shown as a readable sentence.

Besides your variables, two system values are available: the current phase (set by milestones) and the priority of the case.

9. Calculations and decision tables

Not every step needs a person. The bundled demo process “Procurement” shows both:

The demo process Procurement with calculation, parallel review and decision table.
The demo process “Procurement”: calculation of the amounts, parallel review, decision table for the approval level, management approval with decision buttons.

Calculation – runs steps one after the other. Each step either writes the result of a formula into a variable (e.g. brutto = round(netto * 1.19, 2)) or calls an external interface and takes values from the response. For each calculation you decide whether the case stops on an error or skips the step. Formulas are checked as you enter them; interfaces can be tested right in the editor, and values from the response can be taken over with a click.

Properties of the calculation that computes the amounts.
The calculation “Beträge berechnen” (calculate amounts) in the demo process.
External interfaces

For security reasons, Stegvis only calls approved hosts: per organisation in the platform administration or for all organisations via the setting STEGVIS_LOOKUP_HOSTS. The designer shows which hosts apply for the lookup and the API step. By default, calls are made via HTTPS only. Internal network addresses are blocked unless explicitly allowed. Stegvis only connects to the checked address; a name that is redirected afterwards does not lead into the internal network.

Decision table – derives values from rules. Edit table opens the editor: the columns on the left are inputs (conditions on variables), the columns on the right outputs (values that are set). Each row is a rule; an empty input cell means “any”. Outputs starting with = are formulas.

Decision table for the approval level with input and output columns.
The decision table “Freigabestufe ermitteln” (determine approval level): inputs on the left, outputs on the right, one rule per row.

The hit policy determines what applies when several rules match:

In the demo: “03 · Rechnen” (calculation step) and “04 · Regeln in einer Tabelle” (decision table) show each of them on its own.

Splitting and merging PDFs

If a document arrives as one PDF that concerns several parties – for example an order with header, items and terms –, Stegvis splits it along a table: one partial PDF per row with the pages of that row. The table needs a column for the pages and a file column for the part, ideally a return column.

The original stays unchanged. Pages not assigned to any row remain only in the original; the history names them, and optionally they count as an error. Each part remembers which pages of which file it came from. Partial PDFs are files of the case: whoever may see the case sees all parts – splitting distributes the work, it does not separate access.

On the server

The PDF steps need the Python package pypdf (pip install pypdf). Without it, the model check warns and the step ends with a notice. Size and page count are limited, see Operations.

In the demo: “14 · Ein PDF für mehrere Stellen” splits an order between sales and legal, has each part reviewed and merges the parts into one review file.

Database queries Pro

With Pro, a calculation can read values directly from a database, such as a customer’s credit limit and credit rating from SAP Datasphere. Under + Database query you create such a step:

  1. Choose the connection. Only connections that an admin has approved for this process’s process group are offered (see Administration).
  2. Write the SQL query. Insert values from the case as everywhere in Stegvis as {{name}}, e.g. WHERE KUNDENNR = {{kundennummer}} – without quotation marks, even for text: Stegvis does not insert the value into the SQL text but passes it separately to the database as a parameter. That way a value from the case can never change the query. Stegvis therefore rejects '{{name}}' in quotation marks with a note. A multiple choice fits into IN ({{auswahl}}). The usual SQL notation :name works too. Exactly one query with SELECT or WITH is allowed – database steps only read.
  3. Under Take over first row you map columns to variables. Upper and lower case of the column names does not matter. If the query finds nothing, these variables are cleared.
  4. Optionally: Number of rows in a number variable – for example to branch afterwards if the customer is missing – and All rows into table to take the whole result into a table variable. Each column of the table gets the result column of the same name.
  5. Test query lets you enter test values for the placeholders and shows the first rows. Clicking a column creates the mapping.
A database query step with connection, SQL query and mapping of the columns to variables.
The calculation “Kreditlimit aus Datasphere” (credit limit from Datasphere): connection, SQL with {{kundennummer}}, columns of the first row → variables.

The same connections also feed selection lists: for a lookup field or a lookup variable, choose Database query as the source, write the SQL (values from the form as {{name}}) and specify which column is stored and which is displayed.

If a process is moved into a process group in which a connection it uses is not approved, Stegvis asks and names the affected steps. Without approval – or without Pro – the step fails in the case or is skipped, depending on On error.

Notifications

The Notification element informs people at a point in the workflow – such as “Confirm appointment” to the customer or “Approval granted” to the requester. It has two channels:

Under Store result in you choose a variable, such as terminbestaetigung. It receives the status – in Zustellung (in delivery), zugestellt (delivered), teilweise zugestellt (partially delivered) or fehlgeschlagen (failed) (for manual contact Erreicht/Nicht erreicht) –, plus terminbestaetigung__code and terminbestaetigung__text with error number and error text. That way a decision can branch afterwards, e.g. “e-mail failed → call the customer”.

ErrorMeaning
101 / 102no recipient found / recipient without a valid e-mail address
103 / 104external recipients not allowed / daily limit for external messages reached (20 per case)
105 / 110 / 120more than 50 recipients / no mail server set up / attachments larger than 10 MB
200 / 201delivery failed / only partially delivered – reported later

On error determines whether the case stops on an error while sending (process error) or continues and the result is evaluated. The actual delivery runs in the background with retries; its result is entered afterwards – even if the case has long since moved on. A decision directly after the notification therefore reacts to errors while sending, not to later delivery errors.

External recipients

Messages to addresses outside the organisation are only allowed once an admin enables them under Administration → Email & notifications. In the public demo this stays off – there the “Service call” process shows how the case falls back to a phone call after error 103.

In the demo: “08 · Frist und Rückruf” shows the manual contact with its results and tasks with a deadline, “09 · Phasen eines Falls” shows milestones.

Wait and deadline exits

Some workflows depend on time: a contract should come back to the table 30 working days before the notice deadline, a review left lying needs a reminder, and whoever has not decided after eight working days gets escalated. Two building blocks cover this.

The Wait element holds the path. Under How long? you choose:

If the point in time is already in the past, the case continues at once. If the date field is empty, it stops with a process error.

Process editor of the contract renewal: the Wait element selected, on the right Until a date from the case data, date field Wiedervorlage, time 08:00 and the checkbox for the next working day.
“Bis zur Wiedervorlage” (until the review date): the case waits until the date in the field wiedervorlage, 8 a.m. – if it falls on a public holiday, until the next working day. Next to it the dashed deadline exits of the review.

Deadline exits belong to a task. Draw another connection from the task and mark it as a Deadline path in the connection’s properties: it becomes dashed and is labelled, for example, “⏱ after 3 working days”. Completing the task never takes it. Only when the deadline passes – counted from when the task was created – does the case continue there, in one of two ways:

A task can have several deadline exits, such as a reminder after 3 working days and an escalation after 8; each fires at most once. If the case returns to the task later – after a loop, for example – the deadlines start again. For tasks per table row an escalation cancels all rows still open; tasks for external people have the expiry of their link instead of a deadline.

Properties of a dashed connection: Deadline path checked, deadline 8 working days, When the deadline passes: Cancel the task and continue here.
The deadline exit “Eskalation”: after 8 working days, “Verlängerung prüfen” (review renewal) is cancelled and the legal team decides.

Where is the case? The overview of a case shows what it is waiting for and when a deadline passes, for example “Bis zur Wiedervorlage” waits until 15/01/2027, 08:00. The history records each time something fires. If needed, admins bring a waiting case forward with Resume here.

Contract renewal case in the phase Läuft: overview with the notice until when the wait element waits, below it the diagram with the highlighted element.
A contract in the phase “Läuft” (running): the case comes back by itself on 15 January 2027 at 8 a.m.
When it fires

A background run checks about every 30 seconds whether anything is due – the same one that sends e-mails (STEGVIS_MAIL_WORKER, see Operations). Several server processes never fire the same point in time twice. Points in time are calculated when they are scheduled; if the working calendar changes afterwards, they do not move.

In the demo: “15 · Warten, erinnern, eskalieren” counts in minutes: start it, leave the task lying and look at your inbox after two and after five minutes.

Example: contract renewal

The demo process “Vertragsverlängerung” (contract renewal) shows how wait, deadline exits, working calendar and deputies work together. This is how it is built:

  1. Vertrag erfasst (contract recorded) – start form with subject, partner, value, contract end, notice period in days and the person responsible (a field of type person).
  2. Termine berechnen (calculate dates) – a calculation with two formulas:
    kuendigung_bis = adddays(vertragsende, -kuendigungsfrist)   # notice deadline
    wiedervorlage  = addworkdays(kuendigung_bis, -30)          # 30 working days earlier
  3. Milestone “Läuft” (running), then Wait “Bis zur Wiedervorlage”: until the date wiedervorlage, 08:00, moved to the next working day. Afterwards a milestone sets the phase “In Prüfung” (under review).
  4. Verlängerung prüfen (review renewal) – a task From a data field “verantwortlich”, deadline 5 working days, decision buttons Verlängern (renew), Kündigen (terminate), Neu verhandeln (renegotiate). If the person is on holiday, their deputy gets the task.
  5. Reminder – a deadline exit after 3 working days, the task stays open: a notification by e-mail to the person responsible, then a separate end “Erinnert” (reminded).
  6. Escalation – a deadline exit after 8 working days, the task is cancelled: “Eskalation: Entscheidung treffen” (make a decision) for the legal team, with the same buttons.
  7. Entscheidung? (decision) – with Verlängern the person responsible finishes with “Verlängerung abschließen” (complete renewal).
  8. Neu verhandeln leads back to the review after “Neu verhandeln” (deadline 10 working days) – with fresh deadlines for reminder and escalation.
  9. Kündigen goes to the legal team: “Kündigung versenden” (send termination), deadline 3 working days, milestone “Gekündigt” (terminated).
  10. Bis zum Vertragsende (until the contract ends) the case waits once more and creates “Vertrag beenden” (end contract) on the last day – access, standing orders, filing.

The demo calculates with its working calendar: Bavaria, plus 24 and 31 December as own days off. The roughly 40 demo cases are in every state – waiting, reminded, escalated, renegotiated, terminated and closed. One form with six modes makes sure each station edits only its part.

Example: support ticket

The demo process “Support-Ticket” shows a workflow that does not run in a straight line: customer service gathers information from specialist departments and asks the customer, as often as necessary, and every station has its deadline. This is how it is built:

  1. Ticket eingegangen (ticket received) – via the public form /p/demo/support or recorded internally after a phone call. The customer only sees contact and request: product, type of request, urgency, subject, description and files.
  2. Priorität und SLA (priority and SLA) – a calculation turns the urgency into priority P1 to P4, and that into the resolution deadline (1, 3, 5 or 10 working days) and the date “Lösung fällig bis” (solution due by):
    sla_tage    = if(prioritaet == "P1 – kritisch", 1, if(prioritaet == "P2 – hoch", 3, …))
    loesung_bis = addworkdays(eingang, sla_tage)
  3. Ticket bewerten (assess ticket) – a task for the customer service team. It assesses the ticket, adjusts the priority if needed and chooses the next step: communicate a solution, ask a specialist department or ask the customer. Conditional modes make only the matching fields required – for example department and question when a department is to be asked.
  4. Reminder and escalation – two deadline exits on the assessment: after 1 working day a notification to customer service; after 2 working days the task is cancelled and goes to service management. A calculation sets “Reaktions-SLA verletzt” (response SLA breached) and counts the escalations.
  5. Ask a specialist department – a task for the team in the field “Fachabteilung” (assignment From a data field). The department sees the ticket and answers; then it goes back to the assessment. The calculation “Antwort festhalten” (record answer) writes each round into the case’s log – date, department, question, answer – and clears question and answer for the next round. If a department does not answer within 3 working days, the question escalates to service management, which can enter an answer it obtained itself.
  6. Question to the customer – a task for an external person via link: the customer sees their request, the question and an answer field. A reminder follows after 3 days; after 7 days the task ends with “Keine Antwort” (no answer) and customer service closes the ticket. With an answer it goes back to the assessment.
  7. Communicate the solution – a calculation records whether the resolution deadline was met. The customer confirms via link: Problem gelöst (solved) closes the ticket, Nicht gelöst (not solved) reopens it (back to the assessment, “Wieder geöffnet” counts along). Without a reply it counts as solved after 7 days.
Process editor with the support ticket: assessment in the middle, at the top the loop via the specialist department, on the right the question to the customer, at the bottom solution and confirmation; dashed reminder and escalation.
The support ticket in the process editor: every path leads back to the assessment until the customer confirms the solution.

The roughly 50 demo tickets are in every state – with a department, with the customer, escalated, reopened and solved. In the example the resolution deadline is a calculated date: it keeps running while the customer has to act and does not trigger anything itself. Deadlines spanning several steps that pause while waiting for the customer are planned as an extension.

10. Checking, saving, versions

The bar below the canvas checks the model continuously: errors (red) prevent cases from being started, hints (yellow) point out possible problems, such as a missing default path. Clicking a message selects the affected element. If it says “The model is ready to start.”, everything is fine.

Save with Save or Ctrl+S. As long as no case is running with the process, the current version is overwritten. As soon as there are cases, Stegvis creates a new version when saving – unless you have only moved elements (for example with Arrange) or added translations, because that does not change the workflow:

If a process is no longer needed, you can archive it: new cases can then no longer be started, existing ones are kept.

11. Exchanging processes

A finished process can be transferred to another Stegvis installation, for example from a test environment to production. In the process editor, Export downloads a *.stegvis.json file. It contains the model of the displayed version, all its forms and the names of the assigned teams and people.

In the target installation, choose the Import button under Processes. Stegvis creates the process and forms anew, maps teams by their name and people by their username, and then shows what was mapped and what still needs checking.

Working with processes

This part is for everyone who starts cases and works on tasks. The navigation on the left is always the same: Inbox for your own work, Cases for all cases you are involved in, Start case for new matters.

Starting a case

Under Start case you see all processes you can start – first those without a process group, below them a separate section per group. With many processes, the bar above the selection helps: the search field finds processes by name and description, and the buttons next to it (All, No group, one per group, with the number of hits) show just one group. Both work together and are kept as long as you move around in Stegvis; the Processes page has the same bar. Choose a process, fill in the start form and confirm – from then on the case moves on by itself to the first responsible office.

Start case page with search field and process group bar, the four demo processes, the open case and below it the section Stegvis kennenlernen.
Choose a process – or start an open case without a fixed workflow. Below begins the section of the group “Stegvis kennenlernen”.

If no process fits, start an Open case (ad hoc): it has no fixed workflow; you collect information and files in it and hand out tasks freely.

Cases can also arise without signing in – via a public form or automatically from another system via the API.

The inbox

The inbox shows what is currently with you. It updates itself; new tasks are briefly highlighted. If there is nothing with you but something in the team pool, it opens the team pool right away. The tiles at the top jump to the matching tab, and the number on Inbox shows your tasks – or, in a lighter colour, those in the team pool.

Inbox with the New arrivals block, key figures, tabs and recent activity.
At the top, what came in from outside – here one service call via the API and one via the public form –, below the key figures, the tabs for your own tasks and the team pool, and on the right the recent activity.

Several at once: in My tasks, Team pool and – for admins – All open, every open task has a checkbox. Above the list is a bar with Select all and the actions of the tab: in the team pool Claim and Forward …, for your own tasks Forward … and Back to the pool. In the same way you close several open cases together under Cases; the confirmation says how many open tasks will be cancelled. Stegvis handles each entry as it would on its own, with the same rights: whatever is not possible stays unchanged, the rest applies, and a dialog lists the entries concerned. The selection survives the automatic refresh.

Working on tasks

Clicking a task opens it. On the left are the form and actions, on the right the most important case data, the flow and the notes.

Open task Review data protection with the buttons Done, Forward and Back to the pool.
The task “Review data protection”. On the right, the diagram shows where it is in the workflow.

Questions and agreements belong in the notes (save with Ctrl+Enter). They appear in the case and in the audit trail.

Mentioning someone: with @ Mention below the note field – or @username directly in the text – you bring someone in. The person gets a notice at the top of the inbox and, depending on their setting, an e-mail. Only people who may see the case can be chosen; a mention does not grant access. If Stegvis could not notify someone, it says so after saving. The history records who was mentioned.

In multi-line text fields with formatting allowed, there is a toolbar above the field: bold (Ctrl+B), italic (Ctrl+I), bulleted list, numbered list and link (Ctrl+K). Enter in a list starts the next item, Enter on an empty item ends it. Preview shows the text as everyone will later see it in the case view. You insert images – such as a screenshot – with Ctrl+V or drag them in; the text then says “[Bild 1]” (image 1), and in the case view the image appears exactly at this spot.

Start form of the IT approval: multi-line text field with formatting toolbar in preview, with bold text, bulleted list and link.
The start form of the IT approval with the formatted field “What is it needed for?” in preview: bold, italic, bulleted list and link. Without the preview, the field shows the text with ** and - , with the toolbar above it.

Absence and deputies

When you go on holiday or are ill, you enter the period and a deputy. New tasks then go to the deputy – nobody has to reassign them by hand beforehand, and nothing is left lying.

  1. My account → Absence and deputy → Add absence.
  2. Choose From and Until (both days count), the deputy and, if you like, a note such as “holiday”.
  3. The checkbox Hand open tasks over to the deputy on the first day is set – clear it if you would rather keep your open tasks yourself.
My account of David Öztürk: card Absence and deputy with the entry 28/11/2026 to 12/12/2026, deputy Emma Schulz, Urlaub.
David Öztürk is on holiday, Emma Schulz stands in for him. “Edit” extends the absence, “Delete” ends it.

For other people, the team lead (on the team page with Absence next to each member – for their team and its sub-teams) and admins (Administration → a person’s dialog → Absence) enter it. One person’s periods must not overlap; past ones disappear from the list.

What happens then:

Notice when assigning: the person picker – when forwarding, for ad-hoc tasks, in person fields of forms and in the process editor – shows “away until 12/12/2026, deputy: Emma Schulz”. Administration and the team page mark absent people. Only the person themselves, their team lead and admins see the note.

Start form of lesson 16: the person picker lists David Öztürk with the addition away until 12/12/2026, deputy: Emma Schulz.
Lesson 16: already when choosing you can see that David is away – the task ends up with Emma.

In the demo: “16 · Vertretung bei Abwesenheit” shows it with a single task, the contract renewal in everyday use – there David is one of the people responsible for contracts.

The case file

Every case has its own file, reachable via Cases or the link in a task. At the top are the title, status and the actions Add task, Edit (title, responsibility, priority, due date) and Close case.

TabContent
Overview“Where is the case?” – the diagram with completed steps, current work (yellow) and errors (red), plus the most important case data.
DataAll case data. You can change free fields here; protected fields are marked with a lock. Clicking an image opens the image viewer.
TasksAll tasks of the case, open and completed, including extra tasks created on the fly.
FilesAttachments via drag and drop. Images and PDFs can be viewed directly, other formats are downloaded.
HistoryChronological log; changes can be expanded and show before and after.
Flow ProWho had the case when and which documents were handed over, in rounds; see below.

Add task lets you hand out ad-hoc tasks – additional work steps not planned in the process, such as “Get a quote from a second supplier”. The process continues independently. In a process case they may not write fields that the process controls: use a free form with its own fields for that.

Personal follow-up

On the right of the case view, below the open tasks, is the Follow-up card: there you set the case aside for a day – tomorrow, in 1 week, in 1 month or a date of your choice, plus, if you like, a keyword for what to think of – and confirm with Remind me. Only you see the follow-up; it is not a task in the case and changes nothing in the flow. On the day it appears as a notice in the inbox and, depending on your setting, as an e-mail – provided you may still see the case then. ✕ deletes a follow-up beforehand.

Versions, folders and flow Pro

Part of the Pro edition

Without the Pro feature “Case file”, the Files tab is a simple list, and there is no Flow tab. Versions and folders already created remain stored and readable. See Editions & licence.

Some cases live on documents that go back and forth several times: a contract between the legal department and the contracting party, plans between the planning office, structural engineering and the client. The case file keeps every version and shows who handed over what and when.

Files tab of a plan approval with folders; the earlier versions of the ground floor plan are expanded.
The “Files” tab with folders. Clicking the version number shows all earlier versions of a document.

The “Flow” tab shows the case as columns per participant: teams, people and external recipients (orange). Time runs downwards; arrows show handovers with the new files. At the top it says who has the case right now and whether a link has already been opened.

Flow of a contract negotiation in full screen: the rounds so far, the latest one expanded, with the internal teams and the contracting party as external columns.
Flow of a contract negotiation in full screen: in round 3, the sales office works in the contracting party’s comments, legal approves, the secretariat sends the draft back, and the partner replies with further change requests.
Documents per round: rows are folders and documents, columns are lead-in, rounds 1 to 4 and current; versions from the contracting party are marked orange.
“Documents per round”: each round is a dispatch to the contracting party with its own cover letter. In round 1, v1 and v2 are created because the legal department returned the first draft; v3 is the partner’s reply (orange).

In the demo: “12 · Fallakte mit Runden” is the shortest way there: upload a draft, choose “Änderungswünsche” (change requests) as the customer (link as for tasks for external people), upload the draft again with the same file name – afterwards the case file and the flow show two versions and two rounds. Details per version and a gateway on them are shown by the case-file demo “Design approval” (testdaten_generator.py --fallakte, see Examples).

Starting cases from outside

Not every case begins with someone who is signed in to Stegvis. For each process, an admin can set up two entry points in the process editor: a public form for people – customers, applicants, suppliers – and API accessPro for other systems such as an ERP system or a CRM. In both cases the case then runs just like any other: to the first responsible office, with a complete audit trail.

Public form

Anyone who knows the secret link fills in the process’s start form without signing in – this creates a case. To set it up: in the process editor, choose Public, Enable public access and save. Stegvis then shows the link (https://…/p/<organisation>/<code>) and an embed code for your own website.

SettingEffect
Responsible for new casesis notified of every submission and takes over tasks “for the person who started the case”; if nobody is chosen, the admins are notified
Introductionshown publicly above the form; the process description stays internal
Send confirmation toan e-mail field of the start form; the submitter receives a confirmation with a reference number
Consent text, link to privacy policymust be confirmed before submitting; empty = no question
Text after submittinge.g. “We will get back to you within two working days.”
Embedding allowed onwebsites (https://…) that may embed the form via <iframe>; empty = direct link only
Maximum submissions per daydaily limit of the form
Allow images and PDF filesat most 3 files of 5 MB each; only then do multi-line text fields accept images and phone photos as well

Tasks for external people (via link)

Someone without an account can also work on a task in the middle of the workflow, such as a customer accepting a quote. In the task, choose External person (via link) under Who works on it? and enter the e-mail address, fixed or as a placeholder such as {{email}}. The process waits there; the person gets a link and sees only the form in the chosen mode.

In the demo: “10 · Rückfrage beim Kunden”. Since the demo sends no mails, open the task “Kunde antwortet” (customer replies), choose New link, untick Send by mail and open the link in a private window – that way you see what the external person sees.

Try it out

The “External support” form at the end of this guide is such an embedded public form. In the demo organisation, a public form is set up for the “Service call” process at /p/demo/serviceanfrage: fill it in and then sign in as ben – the report is in the pool of “Technik & Service”. It is quicker with the lesson “11 · Von außen” at /p/demo/lernen-anfrage: the request ends up as a task with admin.

Demo input form Start

API for other systems Pro

Part of the Pro edition

The Standard edition has no API button. In the Pro edition without a valid licence key, it carries the note “Pro”, and the interface responds with 403 ("code": "pro_required"). Access already set up stays stored in any case. See Editions & licence.

With API access, another system starts cases of a process via HTTP and later queries their status – such as an ERP system that automatically triggers an approval in Stegvis for a purchase requisition. To set it up: in the process editor, choose API, Enable API access and save.

The key is shown only once

On the first save, Stegvis generates an access ID and a secret key and shows both exactly once. Only a check value of the key is stored – it cannot be displayed later. If it is lost, Generate new key creates a new one; the old one then becomes invalid.

SettingEffect
Name of the external systeme.g. “SAP ECC”; appears as the creator of the cases and in the history
Responsible for new casestakes over tasks “for the person who started the case”
Only from these addressesIP addresses or networks (e.g. 10.20.0.0/24) from which calls may come; empty = from anywhere
Maximum cases per daydaily limit of the access
Return in status queriesvariables that the status query returns, e.g. the decision; all other case data stays hidden

Authenticating – either with the header Authorization: Bearer <access-id>.<key> or via Basic Auth with user = access ID and password = key. Basic Auth can be configured in most systems without programming.

Starting a case – with POST /api/v1/<organisation>/cases and JSON data. data holds the variables of the process context with their key:

POST https://stegvis.example.org/api/v1/nordwerk/cases
Authorization: Bearer <access-id>.<key>
Content-Type: application/json

{
  "external_ref": "4500001234",
  "title": "Bestellung 4500001234",
  "priority": "high",
  "due_date": "2026-12-31",
  "data": {
    "lieferant": "Muster GmbH",
    "benoetigt_bis": "20261201",
    "budget_ok": "X",
    "positionen": [{ "artikel": "Monitor", "menge": 2, "preis": "199,90" }]
  }
}

Querying the status – with GET /api/v1/<organisation>/cases/<number> or GET /api/v1/<organisation>/cases?external_ref=4500001234. The response contains the status (open/closed), phase, open tasks with responsibility, a note on process errors and the released variables. Only cases created via the same access can be queried.

Errors come as {"error": "…"} with a matching HTTP status: 400 invalid data, 401 wrong key, 403 access switched off, address not allowed or no valid Pro licence, 404 case not found, 429 daily limit or too many requests.

Connecting SAP ECC

In transaction SM59, create an HTTP connection to an external server (type G): target host and port 443 of the Stegvis server, path prefix /api/v1/<organisation>/cases, under “Logon & Security” basic authentication with access ID and key, and SSL active (store the server certificate in STRUST). In the ABAP program, cl_http_client=>create_by_destination opens the connection; set method POST, content type application/json and the JSON text, send, then evaluate status and response.

Trying it in the demo

For the “Service call” process, the API access “SAP ECC (Demo)” is set up with the well-known key demo.demo-schluessel. The call only succeeds if the installation has a valid Pro licence:

curl -X POST http://127.0.0.1:8000/api/v1/demo/cases \
  -H "Authorization: Bearer demo.demo-schluessel" -H "Content-Type: application/json" \
  -d '{"external_ref": "SM-4711", "data": {"firma": "Solar Huber", "ansprechpartner": "Eva Huber",
       "plz": "95163", "ort": "Weißenstadt", "anlage": "Photovoltaik", "stoerungsart": "Ausfall",
       "beschreibung": "Wechselrichter meldet Fehler", "wunschtermin": "20261110", "vertrag": "Premium"}}'

curl -H "Authorization: Bearer demo.demo-schluessel" \
  "http://127.0.0.1:8000/api/v1/demo/cases?external_ref=SM-4711"

The case gets priority “High” with a 4-hour response time (premium contract, outage). If Ben schedules the service call on a day with rain or storm, the weather check triggers and the appointment has to be postponed. The status query shows the ERP system the phase, open tasks, appointment and service report at any time. The weather data in the demo is simulated; in production you connect a real weather service as an API step.

The key is sent with every call – so run Stegvis over HTTPS only. Every case started via the API, every failed sign-in, every call from an address that is not allowed and every key change is recorded in the organisation’s security log.

Tracing and analysis

Audit trail

You open the audit trail of a case in the case via the History tab → Open in audit trail. With the Analytics role or as an admin it is also in the menu: under Audit trail you choose a case on the left. On the right you see its complete history:

Audit trail with the change made by the budget review expanded.
An expanded change: the budget review has set “Budget available” and “Cost centre”.

Filters above the log show tasks, changes, files, notes or automation specifically. CSV and JSON export the complete trail of a case. You see the cases you are involved in; with the Analytics role, all cases (read-only).

Statistics

The Statistics page (Analytics role) analyses cases by process, version and period:

Statistics page for the Procurement process with key figures and charts.
Statistics for the “Procurement” process.

Without a process selected, the page compares all processes. The results of closed cases can be exported as CSV or JSON.

My account and two-factor sign-in

Under My account – click your name at the bottom of the sidebar – you change your password, choose how you get e-mails, enter your absence and deputy and sign out on all devices with Sign out everywhere, for example if a phone has been lost.

If you sign in with your organisation's sign-in service (single sign-on Pro), password and two-factor sign-in are missing here: the sign-in service, such as Microsoft, manages both.

E-mails: under E-mails for new tasks, mentions, follow-ups and process errors you choose Immediately, one mail per event, Once a day as a summary or No mails. The summary collects everything since the previous one in a single mail and also lists what is due today or overdue. Admins set the time for everyone (Administration). Notices in the inbox appear regardless; mails from a process’s notification element always come one by one, because they are part of the flow.

Two-factor sign-in

Two-factor sign-in protects your account even if someone knows your password: after the password, Stegvis asks for a 6-digit code from an authenticator app on your phone, such as Microsoft Authenticator, Google Authenticator, FreeOTP or Aegis. The code changes every 30 seconds.

  1. Under My account → Two-factor sign-in, click Set up and confirm your password.
  2. Scan the QR code with the authenticator app. If that does not work, type in the displayed key by hand.
  3. Enter the code the app now shows and confirm.
  4. Stegvis shows ten recovery codes. Keep them safe, for example in a password manager or printed out – they are shown only now. You use one of them to sign in if you do not have your phone at hand; each works once.
Dialog for setting up two-factor sign-in with QR code and input field for the first code.
Setting it up under “My account”: scan the QR code, confirm the first code.

From then on, when signing in you first enter organisation, username and password as usual, then the code from the app. With Don't have your phone? Use a recovery code you use a recovery code instead. If you run out of codes, create new ones under My account; the previous ones then become invalid.

Setting up, turning off and resetting end all other sessions of the account. In the public online demo, two-factor sign-in cannot be set up, because everyone shares the same accounts.

Administration

Organisation admins find user and team management as well as their organisation’s security log under Administration.

Dialog for creating a database connection with host, port, user, password, limits and process groups.
Creating a connection to SAP Datasphere: the space’s database user, port 443, usable only in the “Vertrieb” (sales) group.
An account that may only read

Anyone who designs processes in an approved group can read everything the connection’s database account may read. So create a separate account per connection that may only read and only sees the necessary tables or views – in SAP Datasphere a database user of the space with Read Access (SQL) only. The host, with port, must also be among the organisation’s allowed targets.

Process groups and rights

Process groups determine who sees which processes and what they may do with them. Under Administration → Process groups → Create process group you assign teams and individual people to a group, each assignment with its own ticks:

RightAllows
Startstarting cases of the processes
Designchanging processes and their forms, exporting them, moving them to another group, archiving them
Analysestatistics and results, reading all cases of the group
Process group dialog with teams and people, each row with ticks for Start, Design and Analyse.
A process group: sales may start, its lead may also design, management may analyse.

Mandatory two-factor sign-in

Under Administration → Two-factor sign-in you choose whether two-factor sign-in is optional (everyone decides for themselves), required for administrators or required for everyone. Whoever is affected sets it up at the next sign-in; nothing else works before that. The platform administration can set a minimum level for all organisations – the stricter one then applies.

Working calendar

Under Administration → Working calendar you define what a working day is. It applies to everything counted in working days – a task’s deadline, durations of wait and deadline exits, moving to the next working day – and to the formulas addworkdays and workdaysbetween, including in public forms and tasks for external people.

Below, a list shows the days off of a year apart from weekends; ‹ and › page through the years. Without a setting, Monday to Friday without public holidays applies.

Card Working calendar in Administration: region Bayern, working days Monday to Friday, own days off 24.12. and 31.12., below the days off in 2026.
The demo’s working calendar: Bavaria, plus Christmas Eve and New Year’s Eve. A public holiday on a weekend is missing from the list – it costs no working day.
Switzerland

For the cantons, Stegvis calculates the statutory holidays and those treated like Sundays. Half days and holidays of single municipalities are entered as own days off; check the preview list against your canton’s rules before going live.

Sign-in via Entra ID / OIDC Pro

With Pro, the people of your organisation sign in with their usual account, for example with Microsoft Entra ID, Keycloak or ADFS. Who may use Stegvis and with which rights is decided there, not in Stegvis.

In Entra ID (other providers accordingly):

  1. Create a new registration under App registrations. As redirect URI (platform “Web”), enter the address that Stegvis shows in the dialog, e.g. https://stegvis.example.org/auth/oidc/nordwerk/callback.
  2. Create a client secret under Certificates & secrets.
  3. Create the four roles under App roles and assign them to groups in the enterprise application, such as “Stegvis-User” and “Stegvis-Admin”:
App rolein Stegvis
Stegvis.Useraccess (collaboration)
Stegvis.Adminadministrator
Stegvis.Designerdesign
Stegvis.Analystanalysis

In Stegvis under Administration → Sign-in via Entra ID / OIDC → Set up: choose the provider, enter tenant ID, client ID and client secret, choose an emergency account and switch it on. For another OIDC provider, enter the issuer URL instead of the tenant ID and, if the roles are elsewhere in the token, the roles claim, such as resource_access.stegvis.roles. Its host must be on the organisation's allowed targets. Test connection checks whether Stegvis reaches the provider.

Requirement

The public address must be set (STEGVIS_BASE_URL, see Operations); the redirect URI is derived from it. Anyone who may no longer use Stegvis cannot sign in after the role is removed; a session already running ends at the latest after its maximum length.

Fixing process errors

If a case gets stuck – for example because no condition applies at a gateway –, admins find out immediately: as a red notice at the top of the Inbox, as a red number on the Cases menu item and in the security log. Whoever started the case also sees the notice for their own cases.

  1. Open the case via the notice. In the Overview, the error location is marked red, and the message names the cause.
  2. If necessary, correct the data in the Data tab.
  3. Let the workflow continue at the right point in the diagram with Resume here.
  4. If the model itself has gaps, fix it in the editor, for example by adding a default path. That applies to new cases; the repaired case stays on its version.

Organisations and platform administration

Multiple organisations come with Pro Pro

The Standard edition is meant for one organisation: you create the first one in the platform administration, and every further one needs a Pro licence. Existing organisations keep working in any case, even if a licence expires.

With Pro, one Stegvis installation can host many organisations, such as subsidiaries, customers or departments that should not see anything of each other. Each organisation has its own database and its own file folder: users, teams, processes, forms, cases, files and logs are completely separate. Even the numbers start at 1 in each organisation.

Signing in

When signing in, you enter the organisation (its short name), your username and your password. Stegvis remembers the last organisation used in the browser. A sign-in link of the form https://…/?org=nordwerk pre-fills it – handy for sending to new colleagues. Usernames apply per organisation: two organisations can both have an “anna”. If the organisation uses single sign-on Pro, you sign in with Sign in with … instead.

Platform administration

With the organisation system you sign in to the platform administration. It serves exclusively to manage organisations and deliberately has no insight into cases, processes or files.

Transferring processes to another organisation

Export the process in one organisation and import the file in the other (see Exchanging processes). Teams are mapped by their name.

Appendix

Field types

TypeNotes
Text field, Multi-line textfree text; email, phone and URL / link as separate variants with matching checks. Multi-line text optionally with formatting and inserted images
Number, Amount of moneyamounts of money with currency and decimal places
Date, Time, Date + timeyou can calculate with daysbetween, adddays, addworkdays etc.
Yes/Nocheckbox with its own label
Dropdown, Radio buttons, Multiple choicefixed states; multiple choice stores a list
Person, Teamselection from users or teams – useful for the assignment “From a data field”. A search field: clicking it opens the list, typing filters immediately. A person field can be limited to one team under Only people from team (optionally including sub-teams); the server then accepts no other people. Assigning a step to a team does not limit the selection. Absent people appear with “away until …, deputy: …”
Tablerows with their own columns (text, number, amount of money, date, selection, yes/no, person, team, files), formula columns (e.g. quantity × price) and totals; a formula column only calculates with columns of the same table, the Insert column list inserts them, and Stegvis checks the formula when you save; the totals are available as separate variables. Person columns can be limited to a team like person fields. File columns are filled only by the task per table row and by splitting a PDF; return columns (↩) are hidden when the table is entered File columns have allowed file types and a maximum size like file fields.
Files, Imagesattachments right on the field; images with a preview. Clicking a thumbnail opens the image viewer in full screen: browse with the arrow keys, the mouse wheel, by dragging or swiping; Esc closes it. Ctrl+click opens the image in a new tab. Images can be pasted into multi-line text fields with Ctrl+V, on the phone via “Add photo”. The images belong to the field (noted in the process context as “With images: field__bilder”) and appear next to the field in the overview and the data tab. Allow attaching images switches this off per field.
Set Allowed file types and a Maximum size per file (MB) per file field: images, PDF, Office, old Office formats, text or “blob” (any files, e.g. CAD data). Nothing selected means: all. Stegvis detects the type by content, not only by extension. See Large files.
Lookup (API)selection list fetched while filling in: from an internal list (People, Teams), an approved external interface or Pro a database query. A search field as for person and team: typing filters immediately, all words count, upper and lower case and accents do not; arrow keys and Enter select. The People list can be limited under Only people from the team in to the team stored in another field (including sub-teams if you like) – without a chosen team it stays empty, and if the team changes, it reloads
JSON datastructured data, e.g. responses from interfaces
Heading, Info textonly for structuring the form; they store no data

Large files

Stegvis uploads every file in chunks, very large ones like CAD data too (up to 20 GB per file, adjustable with STEGVIS_MAX_FILE_GB). A bar at the bottom left shows the progress; saving happens only once all files have arrived.

Formula language

Formulas are available in calculations, conditions, table columns, outputs of decision tables and rules of form modes. Variables are addressed by their key, table columns as a list (positionen.gesamt). In a formula column, however, you use the columns of the same row (menge * preis); other formula columns only if they are further up, because the calculation runs from top to bottom. The column editor reports unknown columns, typos and a wrong order right away, and the model check does so when saving.

AreaOptions
Arithmetic+ - * / % ^ as well as round, floor, ceil, abs
Comparison== != < <= > >=
Logicand/und, or/oder, xor, not/nicht (also && || !)
Listssum, avg, min, max, count
Textconcat, upper, lower, len, contains, text, number
Datetoday, now, adddays, addhours, daysbetween, hoursbetween, year, month; in working days per the working calendar: addworkdays(date, n) (n working days later, negative: earlier, 0 = the date itself) and workdaysbetween(from, to) (working days after “from” up to and including “to”)
Controlif(condition, then, else), coalesce(a, b, …) for the first value present
Structuresget(antwort, "items.0.name"), json, tojson, keys

Examples:

sum(positionen.gesamt)                       # total of a table column
round(netto * 1.19, 2)                       # gross with 19 % VAT
if(betrag > 5000, "Management", "Direkt")   # level by amount
daysbetween(today(), liefertermin) < 14      # delivery in less than 2 weeks
addworkdays(today(), 10)                     # in 10 working days, skipping holidays
workdaysbetween(eingang, today()) > 5       # in transit for more than 5 working days
contains(zeichnung.meta.status, "Entwurf")   # detail of a file (case file, Pro): is a version still a draft?

Settings

Stegvis is configured via environment variables. All variables with their default values, plus commands, backup and restore, are on the Operations page.

Keyboard shortcuts

ShortcutEffect
Ctrl+Ssave process or form
Ctrl+Zin the process editor: undo
Ctrl+Y or Ctrl+Shift+Zin the process editor: redo
Deldelete the selected element or connection
Arrow keysmove the selected element
/in lists: open search
Ctrl+Entersave note

On the Mac, use ⌘ instead of Ctrl.

Frequently asked questions

What is the difference between Standard and Pro?
The Pro edition additionally has the API for other systems, database queries, the case file with versions and flow, multiple organisations in one installation and sign-in via Entra ID or OIDC. It needs a licence key, which is checked locally. In this guide, its features are marked with Pro. An overview is under Editions & licence.

What does Stegvis cost?
So far Stegvis is a spare-time project. How Standard and Pro will be offered in future is still open. If you are interested in a Pro licence, write to me: stegvis@hahn.ws.

Can I switch a running case to a new process version?
No. Cases run to the end on the version they were started with. If a case should run according to the new model, close it and start it again.

Are old cases or attachments deleted automatically?
No. Stegvis deliberately keeps cases, attachments and results so that the audit trail stays complete. You have to handle deletion and retention periods organisationally.

Are there e-mail notifications?
Yes. Organisation admins switch them on under Administration → Email & notifications: new tasks to the assigned person, new team tasks to the team members, process errors to the admins. They are sent via the organisation’s mail server or the installation’s system account. Mentions and due follow-ups come on top. Everyone chooses under My account whether to get the mails immediately, once a day as a summary or not at all.

Does Stegvis work on the phone?
Yes, for daily work: inbox, completing tasks, starting and viewing cases, uploading files and photos. At the bottom, a bar leads to the inbox, cases and “Start case”; everything else is under More. You open a case’s diagram in full screen with ⤢ and zoom with two fingers. Designing processes and forms and the administration are built for larger screens; they work on the phone, but not comfortably. Public forms and tasks for external people are designed for the phone.

How do I back up Stegvis?
Back up the data folder (STEGVIS_DATA) regularly. It contains the database, all attachments and the session key.

My phone with the authenticator app is gone.
Sign in with one of your recovery codes and set up the new phone under My account. If you have no codes left, an organisation admin resets your two-factor sign-in. If a correct code is rejected, the phone’s clock is usually wrong – set it to automatic.

I have forgotten my password.
An organisation admin resets it in the administration; at the next sign-in you choose a new one. If organisation admins themselves no longer have access, the platform administration can help.

↑ Contents