Files
fewo-stommer/app/Process/Modules/ProcessModule.php
T
LarsandClaude Opus 5.5 7e22e12cac U-A/U-B: Prozesskern mit Fachmodulen, versionierten Modellen, eingefrorenem Prozessplan, ProcessRunner (harte/weiche Abhängigkeiten), CasePricing, Loyalty nur im Tester
CaseActivities/CaseAutomation sind Fassaden über ProcessRunner. Verhaltensvergleich v0.11:
11 Abläufe und 198 Konstellationen gleich, beabsichtigte Abweichungen I-004/I-005 (F-001/F-002).
Volle Suite vor U-B: 785/785.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-04 14:49:44 +01:00

38 lines
1.4 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
namespace App\Process\Modules;
use App\Process\Activity;
use App\Process\CaseContext;
/**
* A business capability of the process (docs/Prozessarchitektur/Architektur/02 §3): it offers one step of a case's
* course and derives where that step stands from the case's data. Reading methods never write; a module that can carry
* its step out by itself also implements {@see RunsAutomatically}.
*/
interface ProcessModule
{
/** Stable key, e.g. 'offer.binding'. */
public static function key(): string;
/** Version of the module's business behaviour (raised for every change of behaviour, not for wording). */
public static function version(): int;
/** What the configurator, the impact analysis and the contract tests read (pure data, no I/O). */
public static function definition(): ModuleDefinition;
/** Whether the step belongs to this case at all. */
public function applies(CaseContext $case): bool;
/**
* Where the step stands, as the landlord sees it – usually one activity, some steps show none (they only watch) or
* several (one per portal task).
*
* @return list<Activity>
*/
public function activities(CaseContext $case): array;
/** The state the runner uses for dependencies (null: the step has no state of its own and never blocks). */
public function state(CaseContext $case): ?StepState;
}