{% extends 'workflows/base_shell.html' %} {% load static %} {% block title %}Project Wiki{% endblock %} {% block extra_css %} {% endblock %} {% block shell_body %} {% include 'workflows/includes/app_header.html' with header_show_home=1 header_inside_shell=1 %}

Project Wiki

Operational and technical documentation for the Onboarding/Offboarding platform.

Overview Architecture Data Model Onboarding Flow Offboarding Flow Email Engine PDF Engine Integrations Admin Apps Operations Hardening Troubleshooting Security

1) Overview

This system handles employee onboarding and offboarding requests from web forms. It generates branded PDF documents, sends condition-based notifications, stores records in the database, and optionally uploads PDFs to Nextcloud.

2) Architecture

Runtime Components

Request Processing Pattern

3) Data Model (Key Entities)

4) Onboarding Flow

  1. User opens /onboarding/new/ and completes multi-step form.
  2. Form saves request; requester identity is taken from logged-in user.
  3. Task process_onboarding_request runs in worker.
  4. PDF is generated using HTML template + letterhead overlay.
  5. Staff can additionally generate a separate Einweisungs- und Übergabeprotokoll from the Requests Dashboard for face-to-face employee introduction and sign-off.
  6. Staff can also open a simple live Einweisung durchführen page with real web checkboxes, notes, and draft/completed tracking.
  7. Default notification emails + optional rule-based emails are sent.
  8. Welcome email job is scheduled (configurable delay).
  9. PDF is uploaded to Nextcloud if enabled.

5) Offboarding Flow

  1. User opens /offboarding/new/ and can search existing profile first.
  2. Form saves request with requester name/email from logged-in user.
  3. Task process_offboarding_request runs in worker.
  4. PDF is generated. If a previous onboarding request exists, the hardware section can be derived from that onboarding data.
  5. If no saved onboarding request exists for that person, the offboarding PDF automatically falls back to a manual onboarding reference sheet with grouped onboarding fields and printable checkbox lists.
  6. Notification emails are sent (default + rules).
  7. PDF upload to Nextcloud runs if enabled.

6) Email Engine

Modes

Template Placeholders

Examples: {{ VORNAME }}, {{ NACHNAME }}, {{ FULL_NAME }}, {{ EMAIL }}, {{ DEPARTMENT }}, {{ CONTRACT_START }}.

Condition-based Rules

7) PDF Engine

8) Integrations

Nextcloud

Mail Server

8b) Bilingual Core UI

Translation Workflow

9) Admin Apps (Home)

10) Operations Runbook

Health Checks

Where to Find Generated PDFs

Deployment Notes

Initial Bootstrap Users

11) Security & Reliability Hardening (Current)

Recommended for production: set secure cookies, explicit allowed hosts, CSRF trusted origins, and a strong secret key via environment variables.

12) Troubleshooting

Browser timeout or page hangs

Onboarding submit does nothing

PDF not generated

Email not received

Login fails after fresh stack start

Nextcloud upload missing

13) Security and Access Notes

Last updated for current system behavior as of March 19, 2026.
{% endblock %}