Module: Trailblazer::Activity::DSL::Linear::Merge::DSL
- Included in:
- Strategy
- Defined in:
- lib/trailblazer/activity/dsl/linear/feature/merge.rb
Overview
Class methods for Strategy.
Instance Method Summary collapse
Instance Method Details
#merge!(activity) ⇒ Object
7 8 9 10 11 12 13 14 15 |
# File 'lib/trailblazer/activity/dsl/linear/feature/merge.rb', line 7 def merge!(activity) old_seq = to_h[:sequence] new_seq = activity.to_h[:sequence] seq = Merge.call(old_seq, new_seq, end_id: "End.success") # Update the DSL's sequence, then recompile the actual activity. recompile!(seq) end |