re-flow.events
Functions for dispatching re-flow events.
The primary events are :re-flow.events/start and :re-flow.events/transition. For convenience, there are corresponding functions to dispatch the events.
dispatch-error
(dispatch-error message)
Dispatches an error event with the specified message.
set-error-handler
(set-error-handler error-handler)
Sets the event which will be dispatched when an error occurs.
set-transition-interceptors
(set-transition-interceptors interceptors)
Dispatches an event to set the vector of transition interceptors.
See re-flow.interceptors for more information.
set-transition-interceptors-event
(set-transition-interceptors-event interceptors)
Creates an event to set the transition interceptors.
start
(start flow)
(start flow name)
(start flow name db)
Creates and dispatches an event to start a flow.
Options include a flow name and starting db value. If no flow-name is provided, the flow is treated as the default flow.
start-event
(start-event flow)
(start-event flow name)
(start-event flow name db)
Creates an event to start the flow with optional name and starting db.
transition
(transition)
(transition td)
(transition flow-name td)
Creates and dispatches a transition event.
transition-event
(transition-event)
(transition-event td)
(transition-event flow-name td)
Creates an event to transition a flow with the specified transition data.