Sha256: 59a61fbf887d742365cd31b7ca2a75be1afe7dfcdd3237318fcc79471c079415

Contents?: true

Size: 531 Bytes

Versions: 3

Compression:

Stored size: 531 Bytes

Contents

module Pione
  module RuleHandler
    # RootHandler is a special handler for RootRule.
    class RootHandler < FlowHandler
      def self.message_name
        "Root"
      end

      # @api private
      def execute
        # import initial input tuples from input domain
        copy_data_into_domain(@inputs.flatten, @domain)
        # execute the rule
        result = super
        # export outputs to output domain
        copy_data_into_domain(@outputs.flatten, '/output')

        return result
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pione-0.1.2 lib/pione/rule-handler/root-handler.rb
pione-0.1.1 lib/pione/rule-handler/root-handler.rb
pione-0.1.0 lib/pione/rule-handler/root-handler.rb