Module: Ntswf::Utils
- Includes:
- Base
- Defined in:
- lib/ntswf/utils.rb
Instance Method Summary
collapse
Methods included from Base
#activity_task_list, #activity_task_lists, #decision_task_list, #default_unit, #domain, #execution_version, #initialize, #notify, #parse_input, #swf, #workflow_name, #workflow_version
Instance Method Details
#activity_name ⇒ Object
11
12
13
|
# File 'lib/ntswf/utils.rb', line 11
def activity_name
"#{default_unit}-activity"
end
|
#activity_type ⇒ Object
23
24
25
|
# File 'lib/ntswf/utils.rb', line 23
def activity_type
@activity_type ||= domain.activity_types[activity_name, workflow_version]
end
|
#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_type ⇒ Object
19
20
21
|
# File 'lib/ntswf/utils.rb', line 19
def register_activity_type
domain.activity_types.register(activity_name, workflow_version)
end
|
#register_workflow_type ⇒ Object
15
16
17
|
# File 'lib/ntswf/utils.rb', line 15
def register_workflow_type
domain.workflow_types.register(workflow_name, workflow_version)
end
|