Class: Operaton::Bpm::Engine::Variable::TypedValue

Inherits:
Object
  • Object
show all
Defined in:
lib/operaton/bpm/engine/variable/typed_value.rb

Overview

Mirrors org.operaton.bpm.engine.variable.value.TypedValue

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(value, type, is_transient = false) ⇒ TypedValue

Returns a new instance of TypedValue.



13
14
15
16
17
# File 'lib/operaton/bpm/engine/variable/typed_value.rb', line 13

def initialize(value, type, is_transient = false)
  @value = value
  @type = type
  @is_transient = is_transient
end

Instance Attribute Details

#is_transient=(value) ⇒ Object (writeonly)

Sets the attribute is_transient

Parameters:

  • value

    the value to set the attribute is_transient to.



23
24
25
# File 'lib/operaton/bpm/engine/variable/typed_value.rb', line 23

def is_transient=(value)
  @is_transient = value
end

#typeObject (readonly)

Returns the value of attribute type.



11
12
13
# File 'lib/operaton/bpm/engine/variable/typed_value.rb', line 11

def type
  @type
end

#valueObject (readonly)

Returns the value of attribute value.



11
12
13
# File 'lib/operaton/bpm/engine/variable/typed_value.rb', line 11

def value
  @value
end

Instance Method Details

#to_sObject



25
26
27
# File 'lib/operaton/bpm/engine/variable/typed_value.rb', line 25

def to_s
  "Value '#{value}' of type '#{type}', isTransient=#{transient?}"
end

#transient?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'lib/operaton/bpm/engine/variable/typed_value.rb', line 19

def transient?
  @is_transient
end