Module: Ntswf::Utils

Includes:
Base
Defined in:
lib/ntswf/utils.rb

Instance Method Summary collapse

Methods included from Base

#activity_name, #activity_task_lists, #activity_type, #configure, #decision_task_list, #default_unit, #domain, #execution_id_prefix, #execution_version, #notify, #on_notify, #parse_input, #separator, #swf, #workflow_name, #workflow_version

Instance Method Details

#create_domain(description) ⇒ Object



7
8
9
# File 'lib/ntswf/utils.rb', line 7

def create_domain(description)
  swf.domains.create(@config.domain, 3, description: description)
end

#register_activity_typeObject



15
16
17
# File 'lib/ntswf/utils.rb', line 15

def register_activity_type
  domain.activity_types.register(activity_name, workflow_version)
end

#register_workflow_typeObject



11
12
13
# File 'lib/ntswf/utils.rb', line 11

def register_workflow_type
  domain.workflow_types.register(workflow_name, workflow_version)
end