Class: FlowCore::Steps::End
Instance Attribute Summary
#append_to
Class Method Summary
collapse
Instance Method Summary
collapse
#barrier_step?, barrier_step?, #branch_arc_guard_attachable?, branch_arc_guard_attachable?, #branch_configurable?, branch_configurable?, fallback_branch_required?, #fallback_branch_required?, multi_branch_step?, #multi_branch_step?, #redirectable_steps, #redirection_configurable?, #redirection_step?, #transition_callback_attachable?, transition_callback_attachable?, transition_trigger_attachable?, #transition_trigger_attachable?, #transition_trigger_required?, transition_trigger_required?
Class Method Details
.creatable? ⇒ Boolean
19
20
21
|
# File 'app/models/flow_core/steps/end.rb', line 19
def creatable?
true
end
|
.redirection_configurable? ⇒ Boolean
27
28
29
|
# File 'app/models/flow_core/steps/end.rb', line 27
def redirection_configurable?
false
end
|
.redirection_step? ⇒ Boolean
23
24
25
|
# File 'app/models/flow_core/steps/end.rb', line 23
def redirection_step?
true
end
|
Instance Method Details
#deploy_to_workflow!(workflow, input_place_or_transition) ⇒ Object
5
6
7
8
9
10
11
12
13
14
15
16
|
# File 'app/models/flow_core/steps/end.rb', line 5
def deploy_to_workflow!(workflow, input_place_or_transition)
target_place = workflow.end_place || workflow.create_end_place!
if input_place_or_transition.is_a? FlowCore::Transition
target_place.input_transitions << input_place_or_transition
else
input_place_or_transition.input_arcs.update place: target_place
input_place_or_transition.reload.destroy!
end
nil
end
|