state($case); return [new Activity('address_check', 'Anschrift extern prüfen', $state === StepState::Done ? ActivityState::Done : ActivityState::Waiting, self::$serviceAvailable ? null : 'Adressdienst nicht erreichbar – neuer Versuch später')]; } public function state(CaseContext $case): ?StepState { return self::$serviceAvailable ? StepState::Done : StepState::Waiting; } public function due(CaseContext $case): bool { return ! self::$serviceAvailable; } public function blockers(CaseContext $case): array { return []; } public function run(CaseContext $case): StepResult { return StepResult::blocked(['Adressdienst nicht erreichbar.']); } public function isOutward(): bool { return false; } }