lib/floe/workflow/states/fail.rb in floe-0.3.1 vs lib/floe/workflow/states/fail.rb in floe-0.4.0

- old
+ new

@@ -11,15 +11,19 @@ @cause = payload["Cause"] @error = payload["Error"] end - def run!(input) - [nil, input] + def start(input) + super + context.state["Error"] = error + context.state["Cause"] = cause + context.next_state = nil + context.output = input end - def status - "errored" + def running? + false end def end? true end