diff --git a/test/fixtures/v1/posting-v11.json b/test/fixtures/v1/posting-v11.json new file mode 100644 index 0000000..032c4e9 --- /dev/null +++ b/test/fixtures/v1/posting-v11.json @@ -0,0 +1 @@ +{"id":18,"type":"collaboration","lanes":[{"id":"⛾.lifecycle.posting","type":"lane","elements":[{"id":"Event_0odjl3c","label":"invalid!","type":"throw_event","data":{},"links":[{"target_id":"suspend-gw-to-catch-before-Activity_0wwfenp","semantic":"success"}]},{"id":"Event_0txlti3","label":"invalid!","type":"throw_event","data":{},"links":[{"target_id":"suspend-Gateway_0fnbg3r","semantic":"success"}]},{"id":"Event_1p8873y","label":"success","type":"terminus","data":{},"links":[]},{"id":"Event_1oucl4z","label":"invalid!","type":"throw_event","data":{},"links":[{"target_id":"suspend-Gateway_01p7uj7","semantic":"success"}]},{"id":"Activity_0q9p56e","label":"Update","type":"task","data":{},"links":[{"target_id":"throw-after-Activity_0q9p56e","semantic":"success"},{"target_id":"Event_0txlti3","semantic":"failure"}]},{"id":"Activity_0wr78cv","label":"Notify approver","type":"task","data":{},"links":[{"target_id":"throw-after-Activity_0wr78cv","semantic":"success"}]},{"id":"Activity_1qrkaz0","label":"Approve","type":"task","data":{},"links":[{"target_id":"throw-after-Activity_1qrkaz0","semantic":"success"}]},{"id":"Activity_1bjelgv","label":"Publish","type":"task","data":{},"links":[{"target_id":"throw-after-Activity_1bjelgv","semantic":"success"}]},{"id":"Activity_1hgscu3","label":"Archive","type":"task","data":{},"links":[{"target_id":"throw-after-Activity_1hgscu3","semantic":"success"}]},{"id":"Activity_0cc4us9","label":"Delete","type":"task","data":{},"links":[{"target_id":"throw-after-Activity_0cc4us9","semantic":"success"}]},{"id":"Activity_18qv6ob","label":"Revise","type":"task","data":{},"links":[{"target_id":"throw-after-Activity_18qv6ob","semantic":"success"},{"target_id":"Event_1oucl4z","semantic":"failure"}]},{"id":"Activity_0d9yewp","label":"Reject","type":"task","data":{},"links":[{"target_id":"throw-after-Activity_0d9yewp","semantic":"success"}]},{"id":"Activity_0wwfenp","label":"Create","type":"task","data":{},"links":[{"target_id":"throw-after-Activity_0wwfenp","semantic":"success"},{"target_id":"Event_0odjl3c","semantic":"failure"}]},{"id":"catch-before-Activity_0wwfenp","label":null,"type":"catch_event","data":{"start_task":true},"links":[{"target_id":"Activity_0wwfenp","semantic":"success"}]},{"id":"throw-after-Activity_0wwfenp","label":null,"type":"throw_event","data":{},"links":[{"target_id":"suspend-Gateway_0fnbg3r","semantic":"success"}]},{"id":"catch-before-Activity_0q9p56e","label":null,"type":"catch_event","data":{},"links":[{"target_id":"Activity_0q9p56e","semantic":"success"}]},{"id":"throw-after-Activity_0q9p56e","label":null,"type":"throw_event","data":{},"links":[{"target_id":"suspend-Gateway_1wzosup","semantic":"success"}]},{"id":"catch-before-Activity_0wr78cv","label":null,"type":"catch_event","data":{},"links":[{"target_id":"Activity_0wr78cv","semantic":"success"}]},{"id":"throw-after-Activity_0wr78cv","label":null,"type":"throw_event","data":{},"links":[{"target_id":"suspend-Gateway_0y3f8tz","semantic":"success"}]},{"id":"catch-before-Activity_1qrkaz0","label":null,"type":"catch_event","data":{},"links":[{"target_id":"Activity_1qrkaz0","semantic":"success"}]},{"id":"throw-after-Activity_1qrkaz0","label":null,"type":"throw_event","data":{},"links":[{"target_id":"suspend-Gateway_1hp2ssj","semantic":"success"}]},{"id":"catch-before-Activity_1bjelgv","label":null,"type":"catch_event","data":{},"links":[{"target_id":"Activity_1bjelgv","semantic":"success"}]},{"id":"throw-after-Activity_1bjelgv","label":null,"type":"throw_event","data":{},"links":[{"target_id":"suspend-gw-to-catch-before-Activity_1hgscu3","semantic":"success"}]},{"id":"catch-before-Activity_1hgscu3","label":null,"type":"catch_event","data":{},"links":[{"target_id":"Activity_1hgscu3","semantic":"success"}]},{"id":"throw-after-Activity_1hgscu3","label":null,"type":"throw_event","data":{},"links":[{"target_id":"Event_1p8873y","semantic":"success"}]},{"id":"catch-before-Activity_0cc4us9","label":null,"type":"catch_event","data":{},"links":[{"target_id":"Activity_0cc4us9","semantic":"success"}]},{"id":"throw-after-Activity_0cc4us9","label":null,"type":"throw_event","data":{},"links":[{"target_id":"Event_1p8873y","semantic":"success"}]},{"id":"catch-before-Activity_18qv6ob","label":null,"type":"catch_event","data":{},"links":[{"target_id":"Activity_18qv6ob","semantic":"success"}]},{"id":"throw-after-Activity_18qv6ob","label":null,"type":"throw_event","data":{},"links":[{"target_id":"suspend-Gateway_1kl7pnm","semantic":"success"}]},{"id":"catch-before-Activity_0d9yewp","label":null,"type":"catch_event","data":{},"links":[{"target_id":"Activity_0d9yewp","semantic":"success"}]},{"id":"throw-after-Activity_0d9yewp","label":null,"type":"throw_event","data":{},"links":[{"target_id":"suspend-Gateway_01p7uj7","semantic":"success"}]},{"id":"suspend-Gateway_0fnbg3r","label":null,"type":"suspend","data":{"resumes":["catch-before-Activity_0q9p56e","catch-before-Activity_0wr78cv"]},"links":[]},{"id":"suspend-Gateway_1wzosup","label":null,"type":"suspend","data":{"resumes":["catch-before-Activity_0wr78cv","catch-before-Activity_0q9p56e"]},"links":[]},{"id":"suspend-Gateway_0y3f8tz","label":null,"type":"suspend","data":{"resumes":["catch-before-Activity_0d9yewp","catch-before-Activity_1qrkaz0"]},"links":[]},{"id":"suspend-Gateway_1hp2ssj","label":null,"type":"suspend","data":{"resumes":["catch-before-Activity_1bjelgv","catch-before-Activity_0cc4us9","catch-before-Activity_0q9p56e"]},"links":[]},{"id":"suspend-Gateway_01p7uj7","label":null,"type":"suspend","data":{"resumes":["catch-before-Activity_18qv6ob"]},"links":[]},{"id":"suspend-Gateway_1kl7pnm","label":null,"type":"suspend","data":{"resumes":["catch-before-Activity_18qv6ob","catch-before-Activity_0wr78cv"]},"links":[]},{"id":"suspend-gw-to-catch-before-Activity_0wwfenp","label":null,"type":"suspend","data":{"resumes":["catch-before-Activity_0wwfenp"]},"links":[]},{"id":"suspend-gw-to-catch-before-Activity_1hgscu3","label":null,"type":"suspend","data":{"resumes":["catch-before-Activity_1hgscu3"]},"links":[]}]},{"id":"☝.UI.blogger","type":"lane","elements":[{"id":"Event_1npw1tg","label":"accepted?","type":"catch_event","data":{},"links":[{"target_id":"suspend-Gateway_1sq41iq","semantic":"success"}]},{"id":"Event_1bz3ivj","label":"valid?","type":"catch_event","data":{},"links":[{"target_id":"suspend-Gateway_1xnsssa","semantic":"success"}]},{"id":"Event_1wly6jj","label":"invalid?","type":"catch_event","data":{},"links":[{"target_id":"Activity_19m1lnz","semantic":"success"}]},{"id":"Event_1vb197y","label":"rejected?","type":"catch_event","data":{},"links":[{"target_id":"suspend-gw-to-catch-before-Activity_0zsock2","semantic":"success"}]},{"id":"Activity_1165bw9","label":"Update form","type":"task","data":{},"links":[{"target_id":"suspend-Gateway_0nxerxv","semantic":"success"}]},{"id":"Activity_1dt5di5","label":"Notify approver","type":"task","data":{},"links":[{"target_id":"throw-after-Activity_1dt5di5","semantic":"success"}]},{"id":"Activity_0bsjggk","label":"Publish","type":"task","data":{},"links":[{"target_id":"throw-after-Activity_0bsjggk","semantic":"success"}]},{"id":"Activity_15nnysv","label":"Delete","type":"task","data":{},"links":[{"target_id":"throw-after-Activity_15nnysv","semantic":"success"}]},{"id":"Activity_0ha7224","label":"Delete? form","type":"task","data":{},"links":[{"target_id":"suspend-Gateway_100g9dn","semantic":"success"}]},{"id":"Activity_1uhozy1","label":"Cancel","type":"task","data":{},"links":[{"target_id":"suspend-Gateway_1sq41iq","semantic":"success"}]},{"id":"Activity_1wiumzv","label":"Revise","type":"task","data":{},"links":[{"target_id":"throw-after-Activity_1wiumzv","semantic":"success"}]},{"id":"Activity_0zsock2","label":"Revise form","type":"task","data":{},"links":[{"target_id":"suspend-Gateway_1xs96ik","semantic":"success"}]},{"id":"Activity_0j78uzd","label":"Update","type":"task","data":{},"links":[{"target_id":"throw-after-Activity_0j78uzd","semantic":"success"}]},{"id":"Event_1vf88fn","label":"valid?","type":"catch_event","data":{},"links":[{"target_id":"suspend-Gateway_1g3fhu2","semantic":"success"}]},{"id":"Event_1nt0djb","label":"invalid?","type":"catch_event","data":{},"links":[{"target_id":"Activity_00kfo8w","semantic":"success"}]},{"id":"Activity_00kfo8w","label":"Update form with errors","type":"task","data":{},"links":[{"target_id":"suspend-Gateway_0nxerxv","semantic":"success"}]},{"id":"Activity_19m1lnz","label":"Revise form with errors","type":"task","data":{},"links":[{"target_id":"suspend-Gateway_1xs96ik","semantic":"success"}]},{"id":"Activity_0fy41qq","label":"Archive","type":"task","data":{},"links":[{"target_id":"throw-after-Activity_0fy41qq","semantic":"success"}]},{"id":"Event_1vrfxsv","label":null,"type":"catch_event","data":{},"links":[{"target_id":"Event_0h6yhq6","semantic":"success"}]},{"id":"Event_0j1jua6","label":null,"type":"catch_event","data":{},"links":[{"target_id":"Event_0h6yhq6","semantic":"success"}]},{"id":"Event_19ha0ea","label":null,"type":"catch_event","data":{},"links":[{"target_id":"suspend-gw-to-catch-before-Activity_0fy41qq","semantic":"success"}]},{"id":"Event_0h6yhq6","label":"success","type":"terminus","data":{},"links":[]},{"id":"Event_0co8ygx","label":"invalid?","type":"catch_event","data":{},"links":[{"target_id":"Activity_08p0cun","semantic":"success"}]},{"id":"Event_0km79t5","label":"valid?","type":"catch_event","data":{},"links":[{"target_id":"suspend-Gateway_0kknfje","semantic":"success"}]},{"id":"Activity_1psp91r","label":"Create","type":"task","data":{},"links":[{"target_id":"throw-after-Activity_1psp91r","semantic":"success"}]},{"id":"Activity_08p0cun","label":"Create form with errors","type":"task","data":{},"links":[{"target_id":"suspend-Gateway_14h0q7a","semantic":"success"}]},{"id":"catch-before-Activity_1dt5di5","label":null,"type":"catch_event","data":{},"links":[{"target_id":"Activity_1dt5di5","semantic":"success"}]},{"id":"throw-after-Activity_1dt5di5","label":null,"type":"throw_event","data":{},"links":[{"target_id":"suspend-Gateway_063k28q","semantic":"success"}]},{"id":"catch-before-Activity_0bsjggk","label":null,"type":"catch_event","data":{},"links":[{"target_id":"Activity_0bsjggk","semantic":"success"}]},{"id":"throw-after-Activity_0bsjggk","label":null,"type":"throw_event","data":{},"links":[{"target_id":"suspend-gw-to-Event_19ha0ea","semantic":"success"}]},{"id":"catch-before-Activity_15nnysv","label":null,"type":"catch_event","data":{},"links":[{"target_id":"Activity_15nnysv","semantic":"success"}]},{"id":"throw-after-Activity_15nnysv","label":null,"type":"throw_event","data":{},"links":[{"target_id":"suspend-gw-to-Event_1vrfxsv","semantic":"success"}]},{"id":"catch-before-Activity_1wiumzv","label":null,"type":"catch_event","data":{},"links":[{"target_id":"Activity_1wiumzv","semantic":"success"}]},{"id":"throw-after-Activity_1wiumzv","label":null,"type":"throw_event","data":{},"links":[{"target_id":"suspend-Gateway_1sch8el","semantic":"success"}]},{"id":"catch-before-Activity_0j78uzd","label":null,"type":"catch_event","data":{},"links":[{"target_id":"Activity_0j78uzd","semantic":"success"}]},{"id":"throw-after-Activity_0j78uzd","label":null,"type":"throw_event","data":{},"links":[{"target_id":"suspend-Gateway_1runwh1","semantic":"success"}]},{"id":"catch-before-Activity_0fy41qq","label":null,"type":"catch_event","data":{},"links":[{"target_id":"Activity_0fy41qq","semantic":"success"}]},{"id":"throw-after-Activity_0fy41qq","label":null,"type":"throw_event","data":{},"links":[{"target_id":"suspend-gw-to-Event_0j1jua6","semantic":"success"}]},{"id":"catch-before-Activity_1psp91r","label":null,"type":"catch_event","data":{},"links":[{"target_id":"Activity_1psp91r","semantic":"success"}]},{"id":"throw-after-Activity_1psp91r","label":null,"type":"throw_event","data":{},"links":[{"target_id":"suspend-Gateway_1d05yki","semantic":"success"}]},{"id":"catch-before-Activity_1165bw9","label":null,"type":"catch_event","data":{},"links":[{"target_id":"Activity_1165bw9","semantic":"success"}]},{"id":"catch-before-Activity_0ha7224","label":null,"type":"catch_event","data":{},"links":[{"target_id":"Activity_0ha7224","semantic":"success"}]},{"id":"catch-before-Activity_1uhozy1","label":null,"type":"catch_event","data":{},"links":[{"target_id":"Activity_1uhozy1","semantic":"success"}]},{"id":"catch-before-Activity_0zsock2","label":null,"type":"catch_event","data":{},"links":[{"target_id":"Activity_0zsock2","semantic":"success"}]},{"id":"Activity_0wc2mcq","label":"Create form","type":"task","data":{},"links":[{"target_id":"suspend-Gateway_14h0q7a","semantic":"success"}]},{"id":"catch-before-Activity_0wc2mcq","label":null,"type":"catch_event","data":{"start_task":true},"links":[{"target_id":"Activity_0wc2mcq","semantic":"success"}]},{"id":"suspend-Gateway_01cn7zv","label":null,"type":"suspend","data":{"resumes":["catch-before-Activity_1165bw9"]},"links":[]},{"id":"suspend-Gateway_0nxerxv","label":null,"type":"suspend","data":{"resumes":["catch-before-Activity_0j78uzd"]},"links":[]},{"id":"suspend-Gateway_063k28q","label":null,"type":"suspend","data":{"resumes":["Event_1npw1tg","Event_1vb197y"]},"links":[]},{"id":"suspend-Gateway_1sq41iq","label":null,"type":"suspend","data":{"resumes":["catch-before-Activity_1165bw9","catch-before-Activity_0ha7224","catch-before-Activity_0bsjggk"]},"links":[]},{"id":"suspend-Gateway_1sch8el","label":null,"type":"suspend","data":{"resumes":["Event_1bz3ivj","Event_1wly6jj"]},"links":[]},{"id":"suspend-Gateway_1xs96ik","label":null,"type":"suspend","data":{"resumes":["catch-before-Activity_1wiumzv"]},"links":[]},{"id":"suspend-Gateway_100g9dn","label":null,"type":"suspend","data":{"resumes":["catch-before-Activity_15nnysv","catch-before-Activity_1uhozy1"]},"links":[]},{"id":"suspend-Gateway_1runwh1","label":null,"type":"suspend","data":{"resumes":["Event_1vf88fn","Event_1nt0djb"]},"links":[]},{"id":"suspend-Gateway_1g3fhu2","label":null,"type":"suspend","data":{"resumes":["catch-before-Activity_1165bw9","catch-before-Activity_1dt5di5"]},"links":[]},{"id":"suspend-Gateway_14h0q7a","label":null,"type":"suspend","data":{"resumes":["catch-before-Activity_1psp91r"]},"links":[]},{"id":"suspend-Gateway_1d05yki","label":null,"type":"suspend","data":{"resumes":["Event_0km79t5","Event_0co8ygx"]},"links":[]},{"id":"suspend-Gateway_0kknfje","label":null,"type":"suspend","data":{"resumes":["catch-before-Activity_1165bw9","catch-before-Activity_1dt5di5"]},"links":[]},{"id":"suspend-Gateway_1xnsssa","label":null,"type":"suspend","data":{"resumes":["catch-before-Activity_0zsock2","catch-before-Activity_1dt5di5"]},"links":[]},{"id":"suspend-gw-to-Event_1vrfxsv","label":null,"type":"suspend","data":{"resumes":["Event_1vrfxsv"]},"links":[]},{"id":"suspend-gw-to-Event_0j1jua6","label":null,"type":"suspend","data":{"resumes":["Event_0j1jua6"]},"links":[]},{"id":"suspend-gw-to-Event_19ha0ea","label":null,"type":"suspend","data":{"resumes":["Event_19ha0ea"]},"links":[]},{"id":"suspend-gw-to-catch-before-Activity_0fy41qq","label":null,"type":"suspend","data":{"resumes":["catch-before-Activity_0fy41qq"]},"links":[]},{"id":"suspend-gw-to-catch-before-Activity_0zsock2","label":null,"type":"suspend","data":{"resumes":["catch-before-Activity_0zsock2"]},"links":[]},{"id":"suspend-gw-to-catch-before-Activity_0wc2mcq","label":null,"type":"suspend","data":{"resumes":["catch-before-Activity_0wc2mcq"]},"links":[]}]},{"id":"☑.editor.reviewer","type":"lane","elements":[{"id":"Activity_13fw5nm","label":"Approve","type":"task","data":{},"links":[{"target_id":"throw-after-Activity_13fw5nm","semantic":"success"}]},{"id":"Activity_1j7d8sd","label":"Reject","type":"task","data":{},"links":[{"target_id":"throw-after-Activity_1j7d8sd","semantic":"success"}]},{"id":"catch-before-Activity_13fw5nm","label":null,"type":"catch_event","data":{},"links":[{"target_id":"Activity_13fw5nm","semantic":"success"}]},{"id":"throw-after-Activity_13fw5nm","label":null,"type":"throw_event","data":{},"links":[{"target_id":"suspend-gw-to-catch-before-Activity_05zip3u","semantic":"success"}]},{"id":"catch-before-Activity_1j7d8sd","label":null,"type":"catch_event","data":{},"links":[{"target_id":"Activity_1j7d8sd","semantic":"success"}]},{"id":"throw-after-Activity_1j7d8sd","label":null,"type":"throw_event","data":{},"links":[{"target_id":"suspend-gw-to-catch-before-Activity_05zip3u","semantic":"success"}]},{"id":"Activity_05zip3u","label":"Notify","type":"task","data":{},"links":[{"target_id":"suspend-Gateway_02veylj","semantic":"success"}]},{"id":"catch-before-Activity_05zip3u","label":null,"type":"catch_event","data":{"start_task":true},"links":[{"target_id":"Activity_05zip3u","semantic":"success"}]},{"id":"suspend-Gateway_02veylj","label":null,"type":"suspend","data":{"resumes":["catch-before-Activity_13fw5nm","catch-before-Activity_1j7d8sd"]},"links":[]},{"id":"suspend-gw-to-catch-before-Activity_05zip3u","label":null,"type":"suspend","data":{"resumes":["catch-before-Activity_05zip3u"]},"links":[]}]}],"messages":[[["⛾.lifecycle.posting","Event_0odjl3c"],["☝.UI.blogger","Event_0co8ygx"]],[["⛾.lifecycle.posting","Event_0txlti3"],["☝.UI.blogger","Event_1nt0djb"]],[["⛾.lifecycle.posting","Event_1oucl4z"],["☝.UI.blogger","Event_1wly6jj"]],[["⛾.lifecycle.posting","throw-after-Activity_0wwfenp"],["☝.UI.blogger","Event_0km79t5"]],[["⛾.lifecycle.posting","throw-after-Activity_0q9p56e"],["☝.UI.blogger","Event_1vf88fn"]],[["⛾.lifecycle.posting","throw-after-Activity_0wr78cv"],["☑.editor.reviewer","catch-before-Activity_05zip3u"]],[["⛾.lifecycle.posting","throw-after-Activity_1qrkaz0"],["☝.UI.blogger","Event_1npw1tg"]],[["⛾.lifecycle.posting","throw-after-Activity_1bjelgv"],["☝.UI.blogger","Event_19ha0ea"]],[["⛾.lifecycle.posting","throw-after-Activity_1hgscu3"],["☝.UI.blogger","Event_0j1jua6"]],[["⛾.lifecycle.posting","throw-after-Activity_0cc4us9"],["☝.UI.blogger","Event_1vrfxsv"]],[["⛾.lifecycle.posting","throw-after-Activity_18qv6ob"],["☝.UI.blogger","Event_1bz3ivj"]],[["⛾.lifecycle.posting","throw-after-Activity_0d9yewp"],["☝.UI.blogger","Event_1vb197y"]],[["☝.UI.blogger","throw-after-Activity_1dt5di5"],["⛾.lifecycle.posting","catch-before-Activity_0wr78cv"]],[["☝.UI.blogger","throw-after-Activity_0bsjggk"],["⛾.lifecycle.posting","catch-before-Activity_1bjelgv"]],[["☝.UI.blogger","throw-after-Activity_15nnysv"],["⛾.lifecycle.posting","catch-before-Activity_0cc4us9"]],[["☝.UI.blogger","throw-after-Activity_1wiumzv"],["⛾.lifecycle.posting","catch-before-Activity_18qv6ob"]],[["☝.UI.blogger","throw-after-Activity_0j78uzd"],["⛾.lifecycle.posting","catch-before-Activity_0q9p56e"]],[["☝.UI.blogger","throw-after-Activity_0fy41qq"],["⛾.lifecycle.posting","catch-before-Activity_1hgscu3"]],[["☝.UI.blogger","throw-after-Activity_1psp91r"],["⛾.lifecycle.posting","catch-before-Activity_0wwfenp"]],[["☑.editor.reviewer","throw-after-Activity_13fw5nm"],["⛾.lifecycle.posting","catch-before-Activity_1qrkaz0"]],[["☑.editor.reviewer","throw-after-Activity_1j7d8sd"],["⛾.lifecycle.posting","catch-before-Activity_0d9yewp"]]]} \ No newline at end of file diff --git a/test/generate_test.rb b/test/generate_test.rb index b933067..b2bd514 100644 --- a/test/generate_test.rb +++ b/test/generate_test.rb @@ -65,15 +65,15 @@ class GenerateTest < Minitest::Spec # UNIT TEST {Generate::Representer} it "works with PRO's JSON format" do # from ../pro-rails/test/fixtures/bpmn2/moderation.xml-exported.json - moderation_json = File.read("test/fixtures/v1/moderation.json") + moderation_json = File.read("test/fixtures/v1/posting-v11.json") collaboration = Trailblazer::Workflow::Generate::Representer::Collaboration.new(OpenStruct.new).from_json(moderation_json) - assert_equal collaboration.id, 1 + assert_equal collaboration.id, 18 - lifecycle_lane = collaboration.lanes.find { |lane| lane.id == "article moderation" } + lifecycle_lane = collaboration.lanes.find { |lane| lane.id == "⛾.lifecycle.posting" } - assert_equal lifecycle_lane.id, "article moderation" + assert_equal lifecycle_lane.id, "⛾.lifecycle.posting" # assert_equal lifecycle_lane.type "lane" assert_equal lifecycle_lane.elements.size, 39 @@ -97,19 +97,18 @@ class GenerateTest < Minitest::Spec end it do - moderation_json = File.read("test/fixtures/v1/moderation.json") + moderation_json = File.read("test/fixtures/v1/posting-v11.json") signal, (ctx, _) = Trailblazer::Workflow::Generate.invoke([{json_document: moderation_json}, {}]) #@ test {:structure}, which is the directly parsed graph - assert_equal ctx[:structure].messages.size, 18 + assert_equal ctx[:structure].messages.size, 21 lanes = ctx[:intermediates] - # pp lanes # TODO: test ui lane - # puts lanes["article moderation"].pretty_inspect - assert_equal lanes["article moderation"].pretty_inspect, %(# author workflow"].pretty_inspect, %(#:catch_event, :label=>"valid?"}>=> [#], + target="suspend-Gateway_1xnsssa">], #:catch_event, :label=>"invalid?"}>=> @@ -684,7 +683,7 @@ class GenerateTest < Minitest::Spec ["catch-before-Activity_1165bw9", "catch-before-Activity_1dt5di5"], :type=>:suspend}>=>[], # ["catch-before-Activity_0zsock2", "catch-before-Activity_1dt5di5"], @@ -721,7 +720,7 @@ class GenerateTest < Minitest::Spec "suspend-Gateway_14h0q7a"=>:suspend, "suspend-Gateway_1d05yki"=>:suspend, "suspend-Gateway_0kknfje"=>:suspend, - "suspend-Gateway_00n4dsm"=>:suspend, + "suspend-Gateway_1xnsssa"=>:suspend, "suspend-gw-to-Event_1vrfxsv"=>:suspend, "suspend-gw-to-Event_0j1jua6"=>:suspend, "suspend-gw-to-Event_19ha0ea"=>:suspend,