Schablonenkomposition: Basisprozess external.booking mit Platz für Finanz- und Dokumentenschablonen
Vier Schablonen (Eigenes/Portal-Inkasso, Eigene/Externe Vertragsdokumentation) in app/Process/Templates, TemplateComposer prüft Ergebnisse, Verantwortlichkeiten, Ausschlüsse und harte Modulabhängigkeiten. Der Plan friert die Schablonenversionen ein. A3–A5 bleiben als Voreinstellungen; die vierte Kombination (eigenes Inkasso + externe Unterlagen) ist darstellbar. Konfigurator-Logik und ConfigureChannelProcess kennen die Schablonenwahl. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
381720763c
commit
e95ba4f986
24 files changed
+1666
-37
No files matched your search
@@ -2,12 +2,15 @@
|
||||
|
||||
namespace App\Process\Models;
|
||||
|
||||
use App\Process\Templates\TemplateArea;
|
||||
|
||||
/**
|
||||
* One entry of a model's course: a module or an extension point where variants insert modules.
|
||||
* One entry of a model's course: a module, an extension point where variants insert modules, or a slot where the
|
||||
* function template chosen for its area puts its modules.
|
||||
*/
|
||||
final readonly class Step
|
||||
{
|
||||
private function __construct(public ?string $module, public ?Point $point) {}
|
||||
private function __construct(public ?string $module, public ?Point $point, public ?TemplateArea $slot = null) {}
|
||||
|
||||
public static function module(string $key): self
|
||||
{
|
||||
@@ -19,8 +22,18 @@ public static function point(Point $point): self
|
||||
return new self(null, $point);
|
||||
}
|
||||
|
||||
public static function slot(TemplateArea $area): self
|
||||
{
|
||||
return new self(null, null, $area);
|
||||
}
|
||||
|
||||
public function isPoint(): bool
|
||||
{
|
||||
return $this->point !== null;
|
||||
}
|
||||
|
||||
public function isSlot(): bool
|
||||
{
|
||||
return $this->slot !== null;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user