(execute config steps initial-ctx on-sucess on-anomaly on-exception)
Sequentially executes the series of given steps
Each step tap of processor function can be synchronous or asynchronous.
.
config
: A map with:
steps
: Each item on the steps
collection must be either a Tap, or a Processor
Tap:
Processor:
initial-ctx
The context data that gets passed to the steps functions. Must be a map
`on-sucess' Callback that gets called with the context if all the steps succeeded
on-anomaly
Callback that gets called with an anomaly when any step returns one
on-exception
Callback that gets called with an exception when any step triggers one
Sequentially executes the series of given `steps` Each step tap of processor function can be synchronous or asynchronous. . - `config`: A map with: - [opt] anomaly? A function that gets a map and determines if it is an anomaly - [opt] log-exception A function gets called with the runtime-context when there is an exception - [opt] log-anomaly A function that gets called with the runtime-context when a step returns an anomaly - [opt] log-success A function that gets called with the runtime-context after all steps succeeded - `steps`: Each item on the `steps` collection must be either a Tap, or a Processor Tap: - tap: A function that gets the context but doesn't augment it - name: The name of the step Processor: - processor: A function that gets the context and assocs the result into it on the given path - path: Path where to assoc the result of the processor - name: The name of the step - `initial-ctx` The context data that gets passed to the steps functions. Must be a map - `on-sucess' Callback that gets called with the context if all the steps succeeded - `on-anomaly` Callback that gets called with an anomaly when any step returns one - `on-exception` Callback that gets called with an exception when any step triggers one
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close