lib/floe/workflow.rb in floe-0.3.0 vs lib/floe/workflow.rb in floe-0.3.1

- old
+ new

@@ -53,15 +53,15 @@ tick = Process.clock_gettime(Process::CLOCK_MONOTONIC) next_state, output = current_state.run!(context.state["Input"]) tock = Process.clock_gettime(Process::CLOCK_MONOTONIC) context.state["FinishedTime"] = Time.now.utc - context.state["Duration"] = (tock - tick) / 1_000_000.0 + context.state["Duration"] = tock - tick context.state["Output"] = output logger.info("Running state: [#{current_state.name}] with input [#{context["Input"]}]...Complete - next state: [#{next_state}] output: [#{output}]") - context.states << context.state + context.state_history << context.state @status = current_state.status @current_state = next_state && @states_by_name[next_state] @output = output if end?