class AWS::Flow::Templates::ResultActivityTemplate
This template represents a Result Activity
in SWF.
Attributes
key[R]
Public Class Methods
new(key, opts = {})
click to toggle source
Calls superclass method
AWS::Flow::Templates::ActivityTemplate::new
# File lib/aws/templates/activity.rb, line 71 def initialize(key, opts = {}) @key = key # Get the name of the result activity name = "#{FlowConstants.defaults[:result_activity_prefix]}."\ "#{FlowConstants.defaults[:result_activity_method]}" super(name, opts) end
Public Instance Methods
run(input, context)
click to toggle source
Wraps the input into a result hash and calls the ActivityTemplate#run
method to report the result
Calls superclass method
AWS::Flow::Templates::ActivityTemplate#run
# File lib/aws/templates/activity.rb, line 83 def run(input, context) result = {} result[:key] = @key result[:result] = input super(result, context) end