Class: SpotFlow::Bpmn::BusinessRuleTask
- Inherits:
-
ServiceTask
- Object
- Element
- Step
- Activity
- Task
- ServiceTask
- SpotFlow::Bpmn::BusinessRuleTask
- Defined in:
- lib/spot_flow/bpmn/task.rb
Instance Attribute Summary
Attributes inherited from ServiceTask
Attributes inherited from Activity
Attributes inherited from Step
#default, #default_ref, #incoming, #outgoing
Attributes inherited from Element
#extension_elements, #id, #name
Instance Method Summary collapse
Methods inherited from ServiceTask
#execute, #headers, #is_automated?, #is_manual?, #task_retries, #task_type
Methods inherited from Task
#execute, #is_automated?, #is_manual?, #result_to_variables, #signal
Methods inherited from Activity
Methods inherited from Step
#converging?, #diverging?, #initialize, #input_mappings, #leave, #outgoing_flows, #output_mappings
Methods inherited from Element
Constructor Details
This class inherits a constructor from SpotFlow::Bpmn::Activity
Instance Method Details
#decision_id ⇒ Object
115 116 117 |
# File 'lib/spot_flow/bpmn/task.rb', line 115 def decision_id extension_elements&.called_decision&.decision_id end |
#result_variable ⇒ Object
119 120 121 |
# File 'lib/spot_flow/bpmn/task.rb', line 119 def result_variable extension_elements&.called_decision&.result_variable end |
#run(execution) ⇒ Object
123 124 125 |
# File 'lib/spot_flow/bpmn/task.rb', line 123 def run(execution) SpotFeel.decide(decision_id, definitions: execution.context.dmn_definitions_by_decision_id(decision_id), variables: execution.parent.variables) end |