Top Level Namespace
Defined Under Namespace
Modules: Transflow
Instance Method Summary collapse
-
#Transflow(options = {}, &block) ⇒ Object
Define a business transaction flow.
Instance Method Details
#Transflow(options = {}, &block) ⇒ Object
Define a business transaction flow.
A business transaction flow is a simple composition of callable objects that receive an input and produce an output. Steps are registered in the same order they are defined within the DSL and that’s also the order of execution.
Initial input is sent to the first step, its output is sent to the second step and so on.
Every step can become a publisher, which means you can broadcast results from any step and subscribe event listeners to individual steps. This gives you a flexible way of responding to successful or failed execution of individual steps.
46 47 48 |
# File 'lib/transflow.rb', line 46 def Transflow( = {}, &block) Transflow::FlowDSL.new(, &block).call end |