lib/floe/workflow/states/pass.rb in floe-0.2.1 vs lib/floe/workflow/states/pass.rb in floe-0.2.2

- old
+ new

@@ -16,15 +16,15 @@ @input_path = Path.new(payload.fetch("InputPath", "$")) @output_path = Path.new(payload.fetch("OutputPath", "$")) @result_path = ReferencePath.new(payload.fetch("ResultPath", "$")) end - def run!(*) - super do |input| - output = input - output = result_path.set(output, result) if result && result_path - output - end + def run!(input) + output = input_path.value(context, input) + output = result_path.set(output, result) if result && result_path + output = output_path.value(context, output) + + [@next, output] end end end end end