server/executionhandlers/ruby/connection.rb in cpee-2.1.25 vs server/executionhandlers/ruby/connection.rb in cpee-2.1.26

- old
+ new

@@ -147,14 +147,12 @@ end #}}} def activity_handle(passthrough, parameters) # {{{ raise "Wrong endpoint" if @handler_endpoint.nil? || @handler_endpoint.empty? @label = parameters[:label] - @sensors = parameters.dig(:stream,:sensors) - @aggregators = parameters.dig(:stream,:aggregators) - @costs = parameters.dig(:stream,:costs) - @controller.notify("activity/calling", :'activity-uuid' => @handler_activity_uuid, :label => @label, :activity => @handler_position, :passthrough => passthrough, :endpoint => @handler_endpoint, :parameters => parameters) + @anno = parameters[:annotations] + @controller.notify("activity/calling", :'activity-uuid' => @handler_activity_uuid, :label => @label, :activity => @handler_position, :passthrough => passthrough, :endpoint => @handler_endpoint, :parameters => parameters, :annotations => anno) if passthrough.to_s.empty? proto_curl parameters else @controller.callback(self,passthrough,:'activity-uuid' => @handler_activity_uuid, :label => @label, :activity => @handler_position) @handler_passthrough = passthrough @@ -301,10 +299,10 @@ end end end def callback(result=nil,options={}) - @controller.notify("activity/receiving", :'activity-uuid' => @handler_activity_uuid, :label => @label, :activity => @handler_position, :endpoint => @handler_endpoint, :received => structurize_result(result), :sensors => @sensors, :aggregators => @aggregators, :costs => @costs) + @controller.notify("activity/receiving", :'activity-uuid' => @handler_activity_uuid, :label => @label, :activity => @handler_position, :endpoint => @handler_endpoint, :received => structurize_result(result), :annotations => @anno) @guard_files += result @handler_returnValue = simplify_result(result) @handler_returnOptions = options if options['CPEE_UPDATE'] if options['CPEE_UPDATE_STATUS']