bpm.statusTracker
Suivi de statut réel d'un objet métier : barre de progression et étapes completed / current / pending / error, avec date, acteur et description.
- Commande reçueil y a 6 jBoutique en ligne
- Paiement validéil y a 6 jService paiement
- PréparationEn coursil y a 4 jEntrepôt de Lyon
- Expédition
- Livraison
Python
bpm.status_tracker(stages=[("Commande reçue", "completed"), ("Paiement validé", "completed"), ("Préparation", "current"), ("Expédition", "pending"), ("Livraison", "pending")])| Prop | Type | Défaut | Requis | Description |
|---|---|---|---|---|
stages | { label, status, date?, actor?, description? }[] | — | Oui | Étapes du suivi. status ∈ completed | current | pending | error. date (ISO) est affichée en relatif (« il y a 2 h ») si récente. |
direction | "horizontal" | "vertical" | horizontal | Non | Orientation. En vertical, actor et description sont affichés. |
compact | boolean | false | Non | Affichage condensé (pastilles + libellés) en horizontal. |
className | string | — | Non | Classes CSS additionnelles. |
Exemples
bpm.status_tracker(stages=[("Dossier créé", "completed"), ("Pièces vérifiées", "current"), ("Signature", "pending"), ("Clôturé", "pending")])bpm.status_tracker(stages=[("Reçue", "completed"), ("Préparation", "completed"), ("Expédition", "current"), ("Livraison", "pending")], direction="horizontal", compact=True)bpm.status_tracker(
stages=[
{"label": "Demande envoyée", "status": "completed", "date": "2026-06-10T09:00:00", "actor": "Sophie Leroy"},
{"label": "Analyse du dossier", "status": "error", "date": "2026-06-11T16:20:00", "actor": "Service conformité", "description": "Justificatif de domicile illisible."},
{"label": "Décision", "status": "pending"},
],
)