Class: Smith::Workflow::Graph::TransitionContract
- Inherits:
-
Object
- Object
- Smith::Workflow::Graph::TransitionContract
- Extended by:
- Dry::Initializer
- Defined in:
- lib/smith/workflow/graph/transition_contract.rb
Class Method Summary collapse
Instance Method Summary collapse
- #deterministic? ⇒ Boolean
- #fanout? ⇒ Boolean
- #nested? ⇒ Boolean
- #optimized? ⇒ Boolean
- #orchestrated? ⇒ Boolean
- #parallel? ⇒ Boolean
- #routed? ⇒ Boolean
Class Method Details
.from_transition(transition, identifiers:, definition_index:) ⇒ Object
32 33 34 35 |
# File 'lib/smith/workflow/graph/transition_contract.rb', line 32 def self.from_transition(transition, identifiers:, definition_index:) attributes = TransitionContractAttributes.new(transition, identifiers:).to_h new(**attributes, definition_index:).freeze end |
Instance Method Details
#deterministic? ⇒ Boolean
37 |
# File 'lib/smith/workflow/graph/transition_contract.rb', line 37 def deterministic? = deterministic |
#fanout? ⇒ Boolean
39 |
# File 'lib/smith/workflow/graph/transition_contract.rb', line 39 def fanout? = !fanout_config.nil? |
#nested? ⇒ Boolean
41 |
# File 'lib/smith/workflow/graph/transition_contract.rb', line 41 def nested? = !workflow_class.nil? |
#optimized? ⇒ Boolean
40 |
# File 'lib/smith/workflow/graph/transition_contract.rb', line 40 def optimized? = !optimization_config.nil? |
#orchestrated? ⇒ Boolean
38 |
# File 'lib/smith/workflow/graph/transition_contract.rb', line 38 def orchestrated? = !orchestrator_config.nil? |
#parallel? ⇒ Boolean
43 |
# File 'lib/smith/workflow/graph/transition_contract.rb', line 43 def parallel? = parallel |
#routed? ⇒ Boolean
42 |
# File 'lib/smith/workflow/graph/transition_contract.rb', line 42 def routed? = !router_config.nil? |