Kapitel 4 · Die Dienste

Protokoll, Bescheid & Aufgaben

Fachliches protokollieren, Menschen benachrichtigen und Aufgaben stellen — immer an die Person oder die Rolle, nie an eine eigene Rollentabelle.

saims.audit — ins Protokoll schreiben

Setzt audit:write voraus und eine Deklaration in auditEvents.

await saims.audit.write('antrag.genehmigt', { objectId: id, reason: '…' });

Zwei Kanäle: Was die Plattform tut, schreibt sie selbst (eine App kann das weder auslassen noch fälschen). Was die App fachlich tut, schreibt sie hier.

saims.notify — Bescheid geben

Setzt notify:send voraus. Angezeigt wird im Rahmen, nicht in der App — eine Glocke je App wären fünf Glocken und keine sichtbar.

await saims.notify.send({
  an: antrag.antragsteller,          // ODER: anRolle: 'App_Reviewer'
  titel: { de: 'Urlaub genehmigt' },
  text: { de: 'Dein Antrag … wurde genehmigt.' },
  art: 'erfolg',
  ziel: { art: 'urlaubsantrag', kontext: { id: antrag.id } },
});
  • Entweder an oder anRolle — genau eines. Die Plattform löst die Rolle in Menschen auf; eine App führt dafür keine eigene Rollentabelle.
  • Titel und Text sind mehrsprachig — der Empfänger kann eine andere Sprache haben als der Auslöser.
  • ziel ist eine Art, keine App-Kennung; führt der Sprung später ins Leere, landet der Nutzer auf einer Hinweisseite statt in einem Fehler.
  • Die eigenen lesen (Capability notify:read): saims.notify.meine(), markiereGelesen(id), entferne(id) — kein Aufruf nimmt eine Nutzerkennung, auf wen gewirkt wird, steht in der Sitzung.

saims.tasks — etwas zu tun geben

Setzt tasks:write voraus (tasks:read für meine()).

await saims.tasks.stelle({
  titel: saims.i18n.alsLokalisiert('aufgabe.titel'),
  anRolle: 'App_Reviewer',           // oder: an: '<userId>'
  ziel: { art: 'urlaubsantrag', kontext: { id } },
});
await saims.tasks.uebernimm(id);
await saims.tasks.erledige(id, { ergebnis: 'Genehmigt.' });
🔁

Aufgabe vs. Benachrichtigung: Eine Aufgabe darf einer Gruppe (Rolle) gehören, bis jemand sie uebernimmt — danach steht sie auf einem Namen. Eine Benachrichtigung gehört immer sofort einem Menschen. erledige meldet dem, der die Aufgabe gestellt hat (der Rundlauf); melde: false ist die Ausnahme.

Chapter 4 · The Services

Log, notices & tasks

Log business events, notify people and assign tasks — always to the person or the role, never to a role table of your own.

saims.audit — write to the log

Requires audit:write and a declaration in auditEvents.

await saims.audit.write('antrag.genehmigt', { objectId: id, reason: '…' });

Two channels: what the platform does, it writes itself (an app can neither skip nor falsify it). What the app does in business terms, it writes here.

saims.notify — give notice

Requires notify:send. Displayed in the frame, not in the app — one bell per app would be five bells and none visible.

await saims.notify.send({
  an: antrag.antragsteller,          // ODER: anRolle: 'App_Reviewer'
  titel: { de: 'Urlaub genehmigt' },
  text: { de: 'Dein Antrag … wurde genehmigt.' },
  art: 'erfolg',
  ziel: { art: 'urlaubsantrag', kontext: { id: antrag.id } },
});
  • Either an or anRolle — exactly one. The platform resolves the role into people; an app keeps no role table of its own for that.
  • Title and text are multilingual — the recipient may have a different language than the trigger.
  • ziel is a kind, not an app identifier; if the jump later leads nowhere, the user lands on a notice page instead of in an error.
  • Reading your own (capability notify:read): saims.notify.meine(), markiereGelesen(id), entferne(id) — no call takes a user identifier; who it acts on is in the session.

saims.tasks — give something to do

Requires tasks:write (tasks:read for meine()).

await saims.tasks.stelle({
  titel: saims.i18n.alsLokalisiert('aufgabe.titel'),
  anRolle: 'App_Reviewer',           // oder: an: '<userId>'
  ziel: { art: 'urlaubsantrag', kontext: { id } },
});
await saims.tasks.uebernimm(id);
await saims.tasks.erledige(id, { ergebnis: 'Genehmigt.' });
🔁

Task vs. notification: A task may belong to a group (role) until someone uebernimms it — after that it's on a name. A notification always belongs to a person immediately. erledige reports back to whoever created the task (the round-trip); melde: false is the exception.

Chapitre 4 · Les services

Journal, notifications & tâches

Journaliser le métier, notifier des humains et créer des tâches — toujours à la personne ou au rôle, jamais à une table de rôles propre.

saims.audit — écrire dans le journal

Présuppose audit:write et une déclaration dans auditEvents.

await saims.audit.write('antrag.genehmigt', { objectId: id, reason: '…' });

Deux canaux : ce que fait la plateforme, elle l'écrit elle-même (une app ne peut ni l'omettre ni le falsifier). Ce que l'app fait sur le plan métier, elle l'écrit ici.

saims.notify — donner un avis

Présuppose notify:send. L'affichage se fait dans le cadre, pas dans l'app — une cloche par app ferait cinq cloches et aucune visible.

await saims.notify.send({
  an: antrag.antragsteller,          // ODER: anRolle: 'App_Reviewer'
  titel: { de: 'Urlaub genehmigt' },
  text: { de: 'Dein Antrag … wurde genehmigt.' },
  art: 'erfolg',
  ziel: { art: 'urlaubsantrag', kontext: { id: antrag.id } },
});
  • Soit an, soit anRolle — exactement un. La plateforme résout le rôle en personnes ; une app ne tient aucune table de rôles propre pour cela.
  • Titre et texte sont multilingues — le destinataire peut avoir une autre langue que l'émetteur.
  • ziel est un type, pas un identifiant d'app ; si le saut mène plus tard dans le vide, l'utilisateur atterrit sur une page d'information plutôt que dans une erreur.
  • Lire les siennes (capability notify:read) : saims.notify.meine(), markiereGelesen(id), entferne(id) — aucun appel ne prend d'identifiant utilisateur, sur qui cela agit figure dans la session.

saims.tasks — donner quelque chose à faire

Présuppose tasks:write (tasks:read pour meine()).

await saims.tasks.stelle({
  titel: saims.i18n.alsLokalisiert('aufgabe.titel'),
  anRolle: 'App_Reviewer',           // oder: an: '<userId>'
  ziel: { art: 'urlaubsantrag', kontext: { id } },
});
await saims.tasks.uebernimm(id);
await saims.tasks.erledige(id, { ergebnis: 'Genehmigt.' });
🔁

Tâche vs notification : une tâche peut appartenir à un groupe (rôle) jusqu'à ce que quelqu'un la prenne en charge (uebernimm) — ensuite elle est sur un nom. Une notification appartient toujours tout de suite à une personne. erledige informe celui qui a créé la tâche (la boucle de retour) ; melde: false est l'exception.

Rozdział 4 · Usługi

Dziennik, powiadomienie & zadania

Zapisywać sprawy dziedzinowe w dzienniku, powiadamiać ludzi i stawiać zadania — zawsze osobie albo roli, nigdy własnej tabeli ról.

saims.audit — zapis do dziennika

Wymaga audit:write i deklaracji w auditEvents.

await saims.audit.write('antrag.genehmigt', { objectId: id, reason: '…' });

Dwa kanały: co robi platforma, zapisuje ona sama (aplikacja nie może tego ani pominąć, ani sfałszować). Co aplikacja robi dziedzinowo, zapisuje tutaj.

saims.notify — dać znać

Wymaga notify:send. Wyświetlane jest w ramie, nie w aplikacji — jeden dzwonek na aplikację to byłoby pięć dzwonków i żaden widoczny.

await saims.notify.send({
  an: antrag.antragsteller,          // ODER: anRolle: 'App_Reviewer'
  titel: { de: 'Urlaub genehmigt' },
  text: { de: 'Dein Antrag … wurde genehmigt.' },
  art: 'erfolg',
  ziel: { art: 'urlaubsantrag', kontext: { id: antrag.id } },
});
  • Albo an, albo anRolle — dokładnie jedno. Platforma rozwiązuje rolę na ludzi; aplikacja nie prowadzi do tego żadnej własnej tabeli ról.
  • Tytuł i tekst są wielojęzyczne — odbiorca może mieć inny język niż wyzwalający.
  • ziel to rodzaj, a nie identyfikator aplikacji; jeśli skok później prowadzi w pustkę, użytkownik ląduje na stronie z informacją, a nie w błędzie.
  • Odczyt własnych (capability notify:read): saims.notify.meine(), markiereGelesen(id), entferne(id) — żadne wywołanie nie przyjmuje identyfikatora użytkownika, na kogo się działa, stoi w sesji.

saims.tasks — dać coś do zrobienia

Wymaga tasks:write (tasks:read dla meine()).

await saims.tasks.stelle({
  titel: saims.i18n.alsLokalisiert('aufgabe.titel'),
  anRolle: 'App_Reviewer',           // oder: an: '<userId>'
  ziel: { art: 'urlaubsantrag', kontext: { id } },
});
await saims.tasks.uebernimm(id);
await saims.tasks.erledige(id, { ergebnis: 'Genehmigt.' });
🔁

Zadanie vs. powiadomienie: zadanie może należeć do grupy (roli), dopóki ktoś go nie przejmie (uebernimm) — potem stoi na nazwisku. Powiadomienie należy zawsze od razu do człowieka. erledige zgłasza temu, kto zadanie postawił (obieg); melde: false to wyjątek.

Capitolo 4 · I servizi

Registro, avvisi & attività

Registrare l'operatività, notificare le persone e creare attività — sempre alla persona o al ruolo, mai a una tabella di ruoli propria.

saims.audit — scrivere nel registro

Presuppone audit:write e una dichiarazione in auditEvents.

await saims.audit.write('antrag.genehmigt', { objectId: id, reason: '…' });

Due canali: ciò che fa la piattaforma lo scrive essa stessa (un'app non può né ometterlo né falsificarlo). Ciò che l'app fa a livello applicativo lo scrive qui.

saims.notify — dare avviso

Presuppone notify:send. Viene mostrato nella cornice, non nell'app — una campanella per app sarebbero cinque campanelle e nessuna visibile.

await saims.notify.send({
  an: antrag.antragsteller,          // ODER: anRolle: 'App_Reviewer'
  titel: { de: 'Urlaub genehmigt' },
  text: { de: 'Dein Antrag … wurde genehmigt.' },
  art: 'erfolg',
  ziel: { art: 'urlaubsantrag', kontext: { id: antrag.id } },
});
  • O an o anRolle — esattamente uno. La piattaforma risolve il ruolo in persone; un'app per questo non tiene una propria tabella di ruoli.
  • Titolo e testo sono multilingue — il destinatario può avere una lingua diversa da chi ha generato l'avviso.
  • ziel è un tipo, non un identificativo d'app; se in seguito il salto finisce nel vuoto, l'utente atterra su una pagina di avviso anziché in un errore.
  • Leggere le proprie (capability notify:read): saims.notify.meine(), markiereGelesen(id), entferne(id) — nessuna chiamata prende un identificativo utente, su chi si agisce sta nella sessione.

saims.tasks — assegnare qualcosa da fare

Presuppone tasks:write (tasks:read per meine()).

await saims.tasks.stelle({
  titel: saims.i18n.alsLokalisiert('aufgabe.titel'),
  anRolle: 'App_Reviewer',           // oder: an: '<userId>'
  ziel: { art: 'urlaubsantrag', kontext: { id } },
});
await saims.tasks.uebernimm(id);
await saims.tasks.erledige(id, { ergebnis: 'Genehmigt.' });
🔁

Attività vs. notifica: un'attività può appartenere a un gruppo (ruolo) finché qualcuno la prende in carico con uebernimm — dopodiché sta su un nome. Una notifica appartiene sempre subito a una persona. erledige dà riscontro a chi ha creato l'attività (il ritorno); melde: false è l'eccezione.

Hoofdstuk 4 · De diensten

Logboek, bericht & taken

Inhoudelijk loggen, mensen notificeren en taken opgeven — altijd aan de persoon of de rol, nooit aan een eigen rollentabel.

saims.audit — naar het logboek schrijven

Vereist audit:write en een declaratie in auditEvents.

await saims.audit.write('antrag.genehmigt', { objectId: id, reason: '…' });

Twee kanalen: Wat het platform doet, schrijft het zelf (een app kan dat niet weglaten en niet vervalsen). Wat de app inhoudelijk doet, schrijft hij hier.

saims.notify — bericht geven

Vereist notify:send. Weergegeven wordt in het kader, niet in de app — één bel per app zouden vijf bellen zijn en geen zichtbaar.

await saims.notify.send({
  an: antrag.antragsteller,          // ODER: anRolle: 'App_Reviewer'
  titel: { de: 'Urlaub genehmigt' },
  text: { de: 'Dein Antrag … wurde genehmigt.' },
  art: 'erfolg',
  ziel: { art: 'urlaubsantrag', kontext: { id: antrag.id } },
});
  • Ofwel an ofwel anRolle — precies één. Het platform lost de rol op in mensen; een app houdt daarvoor geen eigen rollentabel bij.
  • Titel en tekst zijn meertalig — de ontvanger kan een andere taal hebben dan degene die het in gang zette.
  • ziel is een soort, geen app-identifier; loopt de sprong later in het niets, dan belandt de gebruiker op een meldingspagina in plaats van in een fout.
  • De eigen lezen (capability notify:read): saims.notify.meine(), markiereGelesen(id), entferne(id) — geen aanroep neemt een gebruikersidentifier, op wie wordt ingewerkt, staat in de sessie.

saims.tasks — iets te doen geven

Vereist tasks:write (tasks:read voor meine()).

await saims.tasks.stelle({
  titel: saims.i18n.alsLokalisiert('aufgabe.titel'),
  anRolle: 'App_Reviewer',           // oder: an: '<userId>'
  ziel: { art: 'urlaubsantrag', kontext: { id } },
});
await saims.tasks.uebernimm(id);
await saims.tasks.erledige(id, { ergebnis: 'Genehmigt.' });
🔁

Taak vs. notificatie: Een taak mag aan een groep (rol) toebehoren, tot iemand haar uebernimmt — daarna staat zij op een naam. Een notificatie behoort altijd meteen aan een mens. erledige meldt het aan wie de taak heeft opgegeven (de rondgang); melde: false is de uitzondering.

Capitolul 4 · Serviciile

Jurnal, înștiințare & sarcini

Jurnalizarea aspectelor de business, notificarea oamenilor și crearea de sarcini — mereu către persoană sau rol, niciodată către o tabelă proprie de roluri.

saims.audit — scrierea în jurnal

Presupune audit:write și o declarație în auditEvents.

await saims.audit.write('antrag.genehmigt', { objectId: id, reason: '…' });

Două canale: Ce face platforma, scrie ea însăși (o aplicație nu poate nici să omită, nici să falsifice asta). Ce face aplicația la nivel de business, scrie ea aici.

saims.notify — înștiințarea

Presupune notify:send. Se afișează în cadru, nu în aplicație — câte un clopoțel per aplicație ar fi cinci clopoței și niciunul vizibil.

await saims.notify.send({
  an: antrag.antragsteller,          // ODER: anRolle: 'App_Reviewer'
  titel: { de: 'Urlaub genehmigt' },
  text: { de: 'Dein Antrag … wurde genehmigt.' },
  art: 'erfolg',
  ziel: { art: 'urlaubsantrag', kontext: { id: antrag.id } },
});
  • Fie an, fie anRolle — exact unul. Platforma rezolvă rolul în oameni; o aplicație nu ține pentru asta nicio tabelă proprie de roluri.
  • Titlul și textul sunt multilingve — destinatarul poate avea altă limbă decât cel care a declanșat.
  • ziel este o categorie, nu un identificator de aplicație; dacă saltul duce mai târziu în gol, utilizatorul ajunge pe o pagină de indicație în loc de o eroare.
  • Citirea propriilor notificări (capability notify:read): saims.notify.meine(), markiereGelesen(id), entferne(id) — niciun apel nu ia un identificator de utilizator, asupra cui se acționează stă în sesiune.

saims.tasks — a da ceva de făcut

Presupune tasks:write (tasks:read pentru meine()).

await saims.tasks.stelle({
  titel: saims.i18n.alsLokalisiert('aufgabe.titel'),
  anRolle: 'App_Reviewer',           // oder: an: '<userId>'
  ziel: { art: 'urlaubsantrag', kontext: { id } },
});
await saims.tasks.uebernimm(id);
await saims.tasks.erledige(id, { ergebnis: 'Genehmigt.' });
🔁

Sarcină vs. notificare: O sarcină poate aparține unui grup (rol) până când cineva o uebernimmt — după aceea stă pe un nume. O notificare aparține întotdeauna imediat unui om. erledige înștiințează pe cel care a creat sarcina (ciclul complet); melde: false este excepția.

Κεφάλαιο 4 · Οι υπηρεσίες

Μητρώο, ειδοποίηση & εργασίες

Καταγραφή επιχειρησιακών γεγονότων, ειδοποίηση ανθρώπων και ανάθεση εργασιών — πάντα στο πρόσωπο ή στον ρόλο, ποτέ σε δικό σας πίνακα ρόλων.

saims.audit — εγγραφή στο μητρώο

Απαιτεί audit:write και μια δήλωση στο auditEvents.

await saims.audit.write('antrag.genehmigt', { objectId: id, reason: '…' });

Δύο κανάλια: Ό,τι κάνει η πλατφόρμα το καταγράφει η ίδια (μια εφαρμογή δεν μπορεί ούτε να το παραλείψει ούτε να το παραποιήσει). Ό,τι κάνει η εφαρμογή σε επιχειρησιακό επίπεδο, το καταγράφει εδώ.

saims.notify — ειδοποίηση

Απαιτεί notify:send. Εμφανίζεται στο πλαίσιο, όχι στην εφαρμογή — ένα κουδούνι ανά εφαρμογή θα σήμαινε πέντε κουδούνια και κανένα ορατό.

await saims.notify.send({
  an: antrag.antragsteller,          // ODER: anRolle: 'App_Reviewer'
  titel: { de: 'Urlaub genehmigt' },
  text: { de: 'Dein Antrag … wurde genehmigt.' },
  art: 'erfolg',
  ziel: { art: 'urlaubsantrag', kontext: { id: antrag.id } },
});
  • Είτε an είτε anRolle — ακριβώς ένα από τα δύο. Η πλατφόρμα αναλύει τον ρόλο σε ανθρώπους· μια εφαρμογή δεν τηρεί γι' αυτό δικό της πίνακα ρόλων.
  • Ο τίτλος και το κείμενο είναι πολύγλωσσα — ο παραλήπτης μπορεί να έχει άλλη γλώσσα από αυτόν που ενεργοποίησε την ειδοποίηση.
  • Το ziel είναι ένα είδος, όχι αναγνωριστικό εφαρμογής· αν η μετάβαση καταλήξει αργότερα στο κενό, ο χρήστης προσγειώνεται σε μια σελίδα υπόδειξης αντί για σφάλμα.
  • Ανάγνωση των δικών σας (δυνατότητα (capability) notify:read): saims.notify.meine(), markiereGelesen(id), entferne(id) — καμία κλήση δεν δέχεται αναγνωριστικό χρήστη· σε ποιον αφορά η ενέργεια προκύπτει από τη συνεδρία.

saims.tasks — ανάθεση εργασίας

Απαιτεί tasks:write (tasks:read για meine()).

await saims.tasks.stelle({
  titel: saims.i18n.alsLokalisiert('aufgabe.titel'),
  anRolle: 'App_Reviewer',           // oder: an: '<userId>'
  ziel: { art: 'urlaubsantrag', kontext: { id } },
});
await saims.tasks.uebernimm(id);
await saims.tasks.erledige(id, { ergebnis: 'Genehmigt.' });
🔁

Εργασία vs. ειδοποίηση: Μια εργασία επιτρέπεται να ανήκει σε μια ομάδα (ρόλο), μέχρι κάποιος να την uebernimmt (αναλάβει) — μετά βρίσκεται σε ένα όνομα. Μια ειδοποίηση ανήκει πάντα αμέσως σε έναν άνθρωπο. Το erledige ειδοποιεί αυτόν που ανέθεσε την εργασία (ο κύκλος επιστροφής)· το melde: false είναι η εξαίρεση.

الفصل 4 · الخدمات

السجلّ، الإشعار & المهام

تسجيل الأمور الوظيفية، إشعار الأشخاص وإسناد المهام — دائمًا إلى الشخص أو الدور، لا إلى جدول أدوار خاصّ أبدًا.

saims.audit — الكتابة في السجلّ

يشترط audit:write وإعلانًا في auditEvents.

await saims.audit.write('antrag.genehmigt', { objectId: id, reason: '…' });

قناتان: ما تفعله المنصّة تكتبه بنفسها (ولا يستطيع تطبيق حذفه ولا تزويره). وما يفعله التطبيق وظيفيًّا يكتبه هنا.

saims.notify — الإشعار

يشترط notify:send. ويُعرَض في الإطار، لا في التطبيق — فجرسٌ لكل تطبيق سيعني خمسة أجراس ولا واحد منها ظاهر.

await saims.notify.send({
  an: antrag.antragsteller,          // ODER: anRolle: 'App_Reviewer'
  titel: { de: 'Urlaub genehmigt' },
  text: { de: 'Dein Antrag … wurde genehmigt.' },
  art: 'erfolg',
  ziel: { art: 'urlaubsantrag', kontext: { id: antrag.id } },
});
  • إمّا an أو anRolle — واحد بالضبط. المنصّة تحلّ الدور إلى أشخاص؛ والتطبيق لا يحفظ لذلك جدول أدوار خاصًّا.
  • العنوان والنصّ متعدّدا اللغات — فقد تكون لغة المُستقبِل مختلفة عن لغة المُطلِق.
  • ziel هو نوع، لا معرّف تطبيق؛ وإذا أدّت القفزة لاحقًا إلى الفراغ، وصل المستخدم إلى صفحة تنبيه بدل خطأ.
  • قراءة الخاصّة (الـ Capability notify:read): saims.notify.meine()، markiereGelesen(id)، entferne(id) — لا استدعاء يأخذ معرّف مستخدم، فمن يقع عليه التأثير مذكور في الجلسة.

saims.tasks — إسناد عمل ما

يشترط tasks:write (tasks:read من أجل meine()).

await saims.tasks.stelle({
  titel: saims.i18n.alsLokalisiert('aufgabe.titel'),
  anRolle: 'App_Reviewer',           // oder: an: '<userId>'
  ziel: { art: 'urlaubsantrag', kontext: { id } },
});
await saims.tasks.uebernimm(id);
await saims.tasks.erledige(id, { ergebnis: 'Genehmigt.' });
🔁

المهمة مقابل الإشعار: يجوز أن تخصّ المهمةُ مجموعةً (دورًا) حتى يتولّاها أحد (uebernimm) — بعدها تصبح على اسم. أمّا الإشعار فيخصّ إنسانًا على الفور دائمًا. erledige يُبلِّغ من أسند المهمة (الدورة الراجعة)؛ وmelde: false هو الاستثناء.

第 4 章 · 服务

日志、通知与任务

记录业务日志、通知人、派发任务——始终发给个人或角色,绝不发给自建的角色表。

saims.audit——写入日志

以 audit:write 和 auditEvents 中的一条声明为前提。

await saims.audit.write('antrag.genehmigt', { objectId: id, reason: '…' });

两个通道:平台做的事,由它自己记录(应用既无法略过也无法伪造)。应用在业务上做的事,在这里记录。

saims.notify——发出通知

以 notify:send 为前提。显示在外框里,而非应用里——每个应用一个铃铛,就会是五个铃铛,而且一个都看不清。

await saims.notify.send({
  an: antrag.antragsteller,          // ODER: anRolle: 'App_Reviewer'
  titel: { de: 'Urlaub genehmigt' },
  text: { de: 'Dein Antrag … wurde genehmigt.' },
  art: 'erfolg',
  ziel: { art: 'urlaubsantrag', kontext: { id: antrag.id } },
});
  • 要么 an,要么 anRolle——恰好一个。平台会把角色解析成具体的人;应用为此不维护自建的角色表。
  • 标题和正文是多语言的——接收者的语言可能与触发者不同。
  • ziel 是一个类别,而非应用标识符;如果跳转日后落空,用户会落在一个提示页面,而不是陷入错误。
  • 读取自己的(Capability notify:read):saims.notify.meine()、markiereGelesen(id)、entferne(id)——没有任何调用接受用户标识符,作用于谁,写在会话里。

saims.tasks——派发待办

以 tasks:write 为前提(meine() 需要 tasks:read)。

await saims.tasks.stelle({
  titel: saims.i18n.alsLokalisiert('aufgabe.titel'),
  anRolle: 'App_Reviewer',           // oder: an: '<userId>'
  ziel: { art: 'urlaubsantrag', kontext: { id } },
});
await saims.tasks.uebernimm(id);
await saims.tasks.erledige(id, { ergebnis: 'Genehmigt.' });
🔁

任务 vs. 通知:一个任务可以属于一个群组(角色),直到有人 uebernimm(领取)它——此后它就落在一个具体的人名上。一个通知则始终立即属于某个人。erledige 会回报给派发该任务的人(闭环);melde: false 是例外。