pub fn flow_event( flow: FlowName, stage: FlowStage, outcome: FlowOutcome, reason: impl Into<Option<String>>, ) -> FlowEvent