lib/floe/workflow/states/pass.rb in floe-0.6.1 vs lib/floe/workflow/states/pass.rb in floe-0.7.0

- old
+ new

@@ -2,10 +2,11 @@ module Floe class Workflow module States class Pass < Floe::Workflow::State + include InputOutputMixin include NonTerminalMixin attr_reader :end, :next, :result, :parameters, :input_path, :output_path, :result_path def initialize(workflow, name, payload) @@ -23,15 +24,14 @@ validate_state! end def start(input) super - output = input_path.value(context, input) - output = result_path.set(output, result) if result && result_path - output = output_path.value(context, output) + input = process_input(input) + + context.output = process_output(input, result) context.next_state = end? ? nil : @next - context.output = output end def running? false end