Class: SpotFlow::Bpmn::Task
Instance Attribute Summary
Attributes inherited from Activity
#attachments
Attributes inherited from Step
#default, #default_ref, #incoming, #outgoing
Attributes inherited from Element
#extension_elements, #id, #name
Instance Method Summary
collapse
Methods inherited from Activity
#initialize
Methods inherited from Step
#converging?, #diverging?, #initialize, #input_mappings, #leave, #outgoing_flows, #output_mappings
Methods inherited from Element
#initialize, #inspect
Instance Method Details
#execute(execution) ⇒ Object
15
16
17
|
# File 'lib/spot_flow/bpmn/task.rb', line 15
def execute(execution)
execution.wait
end
|
#is_automated? ⇒ Boolean
7
8
9
|
# File 'lib/spot_flow/bpmn/task.rb', line 7
def is_automated?
false
end
|
#is_manual? ⇒ Boolean
11
12
13
|
# File 'lib/spot_flow/bpmn/task.rb', line 11
def is_manual?
true
end
|
#result_to_variables(result) ⇒ Object
23
24
25
26
27
28
29
30
31
32
33
|
# File 'lib/spot_flow/bpmn/task.rb', line 23
def result_to_variables(result)
if result_variable
return { "#{result_variable}": result }
else
if result.is_a? Hash
result
else
{}.tap { |h| h[id.underscore] = result }
end
end
end
|
#signal(execution) ⇒ Object
19
20
21
|
# File 'lib/spot_flow/bpmn/task.rb', line 19
def signal(execution)
leave(execution)
end
|