Sha256: de149b45de80d9195e80a0d09f0a65c2ed61cb1a9d35fe0256066ef738e6fc98
Contents?: true
Size: 908 Bytes
Versions: 4
Compression:
Stored size: 908 Bytes
Contents
# frozen_string_literal: true module Floe class Workflow module States class Pass < Floe::Workflow::State attr_reader :end, :next, :result, :parameters, :input_path, :output_path, :result_path def initialize(workflow, name, payload) super @next = payload["Next"] @result = payload["Result"] @parameters = PayloadTemplate.new(payload["Parameters"]) if payload["Parameters"] @input_path = Path.new(payload.fetch("InputPath", "$")) @output_path = Path.new(payload.fetch("OutputPath", "$")) @result_path = ReferencePath.new(payload.fetch("ResultPath", "$")) end def run!(*) super do |input| output = input output = result_path.set(output, result) if result && result_path output end end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
floe-0.2.1 | lib/floe/workflow/states/pass.rb |
floe-0.2.0 | lib/floe/workflow/states/pass.rb |
floe-0.1.1 | lib/floe/workflow/states/pass.rb |
floe-0.1.0 | lib/floe/workflow/states/pass.rb |