Skip to content
docsv0.1.0

ProcessState

The projection a {@see Reducer} folds a process instance's events into: the state it currently occupies, and the accumulated context (e.g. domain ids stamped at start) carried by those events. Never stored — always recomputed from the log, so two instances folding the same events always agree.

ProcessState::__construct()

public function __construct(string $currentState, array $context):

Parameters

Parameters of __construct()
NameTypeDescription
$currentStatestringthe state name this projection landed on
$contextarray<string, mixed>accumulated event payload data (later keys override earlier ones)