TransitionNotAllowedException
Thrown by {@see \Milpa\Workflow\Contracts\StateMachineInterface::transition()} when a requested state transition is not defined, disabled, or blocked by a failed gate — carries the from/to states, domain, and (when a gate blocked it) the missing fields/evidence a caller needs to retry successfully.
TransitionNotAllowedException::__construct()
public function __construct(string $fromState, string $toState, string $domain, ?string $gateCode = null, array $missingFields = [], array $missingEvidence = [], ?string $reason = null):Parameters
| Name | Type | Description |
|---|---|---|
| $fromState | string | Estado origen |
| $toState | string | Estado destino |
| $domain | string | Domain (opportunity/project) |
| $gateCode | (string | null) | Código del gate que bloqueó |
| $missingFields | array<string> | Campos faltantes |
| $missingEvidence | array<string> | Evidencias faltantes |
| $reason | (string | null) | Razón adicional |
TransitionNotAllowedException::getFromState()
public function getFromState(): stringTransitionNotAllowedException::getToState()
public function getToState(): stringTransitionNotAllowedException::getDomain()
public function getDomain(): stringTransitionNotAllowedException::getGateCode()
public function getGateCode(): ?stringTransitionNotAllowedException::getMissingFields()
public function getMissingFields(): arrayTransitionNotAllowedException::getMissingEvidence()
public function getMissingEvidence(): array