class AWS::Flow::Templates::TemplateBase

A Template is a precanned workflow definition that can be combined with other templates to construct a workflow body. TemplateBase is a class that must be inherited by all templates. It provides the ‘abstract’ method run that needs to be implemented by subclasses.

Public Instance Methods

run(input, context) click to toggle source

This method needs to be implemented by the sub classes. @param {Hash} input

This is the input to the template

@param {AWS::Flow::Workflows} context

A class that extends AWS::Flow::Workflows. The workflow that runs a
template passes itself as an argument to provide the template with
the right context to execute in.
# File lib/aws/templates/base.rb, line 18
def run(input, context)
  raise NotImplementedError, "Please implement the #run method of your template."
end