From 433ac4a5ea3bb631b3e8d022e6d135858228eddd Mon Sep 17 00:00:00 2001 From: Nick Sutterer Date: Mon, 25 Mar 2024 14:14:55 +0100 Subject: [PATCH] the reviewer activity now always stops in a suspend. --- test/test_helper.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/test_helper.rb b/test/test_helper.rb index 78b2b53..0af5ded 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -109,15 +109,15 @@ def build_custom_editor_lane(lanes, message_flow) approver_start_suspend = nil approver_activity = Class.new(Trailblazer::Activity::Railway) do - step task: approver_start_suspend = Trailblazer::Workflow::Event::Suspend.new(semantic: "invented_semantic", "resumes" => ["catch-before-decider-xxx"]), id: "~suspend~" + terminus task: approver_start_suspend = Trailblazer::Workflow::Event::Suspend.new(semantic: "invented_semantic", "resumes" => ["catch-before-decider-xxx"]), id: "~suspend~" fail task: Trailblazer::Workflow::Event::Catch.new(semantic: "xxx --> decider"), id: "catch-before-decider-xxx", Output(:success) => Track(:failure) fail :decider, id: "xxx", Output(:failure) => Trailblazer::Activity::Railway.Id("xxx_reject") - fail task: decision_is_approve_throw = Trailblazer::Workflow::Event::Throw.new(semantic: "xxx_approve") + fail task: decision_is_approve_throw = Trailblazer::Workflow::Event::Throw.new(semantic: "xxx_approve"), Output(:success) => Id("~suspend~") step task: decision_is_reject_throw = Trailblazer::Workflow::Event::Throw.new(semantic: "xxx_reject"), - magnetic_to: :reject, id: "xxx_reject" + magnetic_to: :reject, id: "xxx_reject", Output(:success) => Id("~suspend~") def decider(ctx, decision: true, **) # raise if !decision