lib/atp/processors/relationship.rb in atp-0.5.3 vs lib/atp/processors/relationship.rb in atp-0.5.4
- old
+ new
@@ -59,11 +59,11 @@
def add_pass_flag(id, node)
node = node.ensure_node_present(:on_pass)
node = node.ensure_node_present(:on_fail)
node.updated(nil, node.children.map do |n|
if n.type == :on_pass
- n = n.add n1(:set_run_flag, "#{id}_PASSED")
+ n = n.add n2(:set_run_flag, "#{id}_PASSED", :auto_generated)
elsif n.type == :on_fail
n.ensure_node_present(:continue)
else
n
end
@@ -72,11 +72,11 @@
def add_fail_flag(id, node)
node = node.ensure_node_present(:on_fail)
node.updated(nil, node.children.map do |n|
if n.type == :on_fail
- n = n.add n1(:set_run_flag, "#{id}_FAILED")
+ n = n.add n2(:set_run_flag, "#{id}_FAILED", :auto_generated)
n.ensure_node_present(:continue)
else
n
end
end)
@@ -85,10 +85,10 @@
def add_executed_flag(id, node)
node = node.ensure_node_present(:on_fail)
node = node.ensure_node_present(:on_pass)
node.updated(nil, node.children.map do |n|
if n.type == :on_pass || n.type == :on_fail
- n = n.add n1(:set_run_flag, "#{id}_RAN")
+ n = n.add n2(:set_run_flag, "#{id}_RAN", :auto_generated)
else
n
end
end)
end