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>
38 lines
1.4 KiB
PHP
38 lines
1.4 KiB
PHP
<?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;
|
||
}
|