Class: ProcessEngine::Schema::Transition

Inherits:
Object
  • Object
show all
Defined in:
app/models/process_engine/schema/transition.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options, _source, _target) ⇒ Transition

available options

                "name" => "sequence flow 3",
             "node_id" => "sf3",
           "node_type" => "sequenceFlow",
          "source_ref" => "pg1",
          "target_ref" => "ut2",
  "extension_elements" => {,
"condition_expression" => {}

}



14
15
16
17
18
19
20
# File 'app/models/process_engine/schema/transition.rb', line 14

def initialize(options, _source, _target)

  @id = options[:node_id]
  @type = options[:node_type]
  @source = _source
  @target = _target
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



2
3
4
# File 'app/models/process_engine/schema/transition.rb', line 2

def id
  @id
end

#sourceObject (readonly)

Returns the value of attribute source.



2
3
4
# File 'app/models/process_engine/schema/transition.rb', line 2

def source
  @source
end

#targetObject (readonly)

Returns the value of attribute target.



2
3
4
# File 'app/models/process_engine/schema/transition.rb', line 2

def target
  @target
end

#typeObject (readonly)

Returns the value of attribute type.



2
3
4
# File 'app/models/process_engine/schema/transition.rb', line 2

def type
  @type
end