Skip to content
Corex

FlowService

Corex\Forms\Flow\FlowService · class · Forms layer

Orchestrates optimistic draft snapshots and flow lifecycle transitions.

__construct(FlowRepository $flows, FlowConfigurationValidator $validator)

Section titled “__construct(FlowRepository $flows, FlowConfigurationValidator $validator)”

listing(string $query, string $state): array

Section titled “listing(string $query, string $state): array”

The flows a list shows, each beside the draft it would open, narrowed by name or slug and by state. A stored flow that cannot be read is not in it; the repository says which in the log.

saveDraft(FlowDraftUpdate $update): FlowVersion

Section titled “saveDraft(FlowDraftUpdate $update): FlowVersion”

unpublish(FlowTransition $transition): Flow

Section titled “unpublish(FlowTransition $transition): Flow”