class AWS::SimpleWorkflow::WorkflowTypeCollection

def register name, version, options = {}

Options Hash: (**options)
  • :description (String) -- Textual description of
  • :default_task_start_to_close_timeout (Integer, :none) --
  • :default_task_list (String) -- Specifies
  • :default_execution_start_to_close_timeout (Integer, :none) --
  • :default_child_policy (Symbol) -- Specifies the default

Parameters:
  • options (Hash) --
  • version (String) -- The version of the workflow type.
  • name (String) -- The name of the workflow type.
def register name, version, options = {}
  options[:domain] = domain.name
  options[:name] = name
  options[:version] = version
  upcase_opts(options, :default_child_policy)
  duration_opts(options,
    :default_execution_start_to_close_timeout,
    :default_task_start_to_close_timeout)
  if task_list = options[:default_task_list]
    options[:default_task_list] = { :name => task_list.to_s }
  end
  client.register_workflow_type(options)
  self[name, version]
end