lib/floe/workflow/state.rb in floe-0.2.1 vs lib/floe/workflow/state.rb in floe-0.2.2
- old
+ new
@@ -39,24 +39,8 @@
end
def status
end? ? "success" : "running"
end
-
- def run!(input)
- logger.info("Running state: [#{name}] with input [#{input}]")
-
- input = input_path.value(context, input)
-
- output, next_state = block_given? ? yield(input) : input
- next_state ||= workflow.states_by_name[payload["Next"]] unless end?
-
- output ||= input
- output = output_path&.value(context, output)
-
- logger.info("Running state: [#{name}] with input [#{input}]...Complete - next state: [#{next_state&.name}] output: [#{output}]")
-
- [next_state, output]
- end
end
end
end