Class: ProcessEngine::Schema::Interceptor::ExclusiveGateway
- Inherits:
-
Object
- Object
- ProcessEngine::Schema::Interceptor::ExclusiveGateway
- Defined in:
- app/models/process_engine/schema/interceptor/exclusive_gateway.rb
Instance Attribute Summary collapse
-
#node ⇒ Object
readonly
Returns the value of attribute node.
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Class Method Summary collapse
Instance Method Summary collapse
- #execute ⇒ Object
-
#initialize(node, options) ⇒ ExclusiveGateway
constructor
A new instance of ExclusiveGateway.
Constructor Details
#initialize(node, options) ⇒ ExclusiveGateway
Returns a new instance of ExclusiveGateway.
5 6 7 8 |
# File 'app/models/process_engine/schema/interceptor/exclusive_gateway.rb', line 5 def initialize(node, ) @node = node @options = end |
Instance Attribute Details
#node ⇒ Object (readonly)
Returns the value of attribute node.
3 4 5 |
# File 'app/models/process_engine/schema/interceptor/exclusive_gateway.rb', line 3 def node @node end |
#options ⇒ Object (readonly)
Returns the value of attribute options.
3 4 5 |
# File 'app/models/process_engine/schema/interceptor/exclusive_gateway.rb', line 3 def @options end |
Class Method Details
.execute(node, options) ⇒ Object
21 22 23 |
# File 'app/models/process_engine/schema/interceptor/exclusive_gateway.rb', line 21 def self.execute(node, ) new(node, ).execute end |
Instance Method Details
#execute ⇒ Object
10 11 12 13 14 15 16 17 18 19 |
# File 'app/models/process_engine/schema/interceptor/exclusive_gateway.rb', line 10 def execute # get the next branch from the options implemented next_node = target_of_next_sequence_flow([:exclusive_gateway_choice_value]) # choose the default flow if not implemented next_node = choose_default_flow unless next_node return [] unless next_node # the flow get stuck if no implementation given or no default path [next_node] end |