class BBS::FlowRunner

Runs a BBS::Flow on a session: each step in order (see BBS::Flow::Steps), writing to and reading from the caller’s line, with a context Hash that ask steps fill and later steps and blocks read.

BBS::FlowRunner.new(session, session_id, flow, context: { name: 'Zsolt' }).run

An error raised in a call block is reported to the caller and on stderr and the flow carries on; a dropped line (IOError, EPIPE, ECONNRESET) ends it.