lib/floe/workflow/states/pass.rb in floe-0.3.1 vs lib/floe/workflow/states/pass.rb in floe-0.4.0
- old
+ new
@@ -17,19 +17,21 @@
@input_path = Path.new(payload.fetch("InputPath", "$"))
@output_path = Path.new(payload.fetch("OutputPath", "$"))
@result_path = ReferencePath.new(payload.fetch("ResultPath", "$"))
end
- def run!(input)
+ 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)
- [@end ? nil : @next, output]
+ context.next_state = end? ? nil : @next
+ context.output = output
end
- def status
- @end ? "success" : "running"
+ def running?
+ false
end
def end?
@end
end