Module: Trailblazer::Endpoint::Protocol::Domain
- Defined in:
- lib/trailblazer/endpoint/protocol.rb
Class Method Summary collapse
- .extension_for_terminus_handler ⇒ Object
-
.terminus_handler(wrap_ctx, original_args) ⇒ Object
taskWrap step that saves the return signal of the domain_activity.
Class Method Details
.extension_for_terminus_handler ⇒ Object
104 105 106 107 |
# File 'lib/trailblazer/endpoint/protocol.rb', line 104 def self.extension_for_terminus_handler # this is called after {:output}. [method(:terminus_handler), id: "endpoint.end_signal", append: "task_wrap.call_task"] # the "friendly interface" for extensions. end |
.terminus_handler(wrap_ctx, original_args) ⇒ Object
taskWrap step that saves the return signal of the domain_activity. The taskWrap step is usually inserted after Trailblazer::Endpoint::Protocol::Domain.task_wraptask_wrap.output.
91 92 93 94 95 96 97 98 99 100 101 102 |
# File 'lib/trailblazer/endpoint/protocol.rb', line 91 def self.terminus_handler(wrap_ctx, original_args) # Unrecognized Signal `"bla"` returned from EndpointTest::LegacyCreate. Registered signals are, # - #<Trailblazer::Activity::End semantic=:failure> # - #<Trailblazer::Activity::End semantic=:success> # - #<Trailblazer::Activity::End semantic=:fromail_fast> # {:return_args} is the original "endpoint ctx" that was returned from the {:output} filter. wrap_ctx[:return_args][0][:domain_activity_return_signal] = wrap_ctx[:return_signal] return wrap_ctx, original_args end |