Modellwahl über Kanalfähigkeiten mit erklärten Einschränkungen, Abgleich alter Werte, Ausführungsvarianten je Modul, getrennte Vertrags-/Buchungsinformation, Warten auf die Portalbestätigung mit Eskalation und Wiederaufnahme (Fälle C und D getestet). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
35 lines
1.2 KiB
PHP
35 lines
1.2 KiB
PHP
<?php
|
|
|
|
namespace App\Enums;
|
|
|
|
use Filament\Support\Contracts\HasLabel;
|
|
|
|
/**
|
|
* The ways a task of the process may be fulfilled (docs/Prozessarchitektur/V2.1/02 §2). What is business-mandatory stays
|
|
* mandatory; the question is not „can I switch it off?“ but „which admissible ways do I have?“. A module names its ways,
|
|
* the process model narrows them for its archetype.
|
|
*/
|
|
enum Execution: string implements HasLabel
|
|
{
|
|
case Automatic = 'automatic';
|
|
case Approval = 'approval';
|
|
case Manual = 'manual';
|
|
case Portal = 'portal';
|
|
case ServiceProvider = 'service_provider';
|
|
case External = 'external';
|
|
case NotRequired = 'not_required';
|
|
|
|
public function getLabel(): string
|
|
{
|
|
return match ($this) {
|
|
self::Automatic => 'automatisch durch FewoPortal',
|
|
self::Approval => 'vorbereitet, nach Ihrer Freigabe',
|
|
self::Manual => 'von Ihnen von Hand',
|
|
self::Portal => 'durch das Portal',
|
|
self::ServiceProvider => 'durch einen Dienstleister',
|
|
self::External => 'bereits extern erledigt (mit Nachweis)',
|
|
self::NotRequired => 'nicht erforderlich',
|
|
};
|
|
}
|
|
}
|