org.camunda.bpm.engine.impl.core.variable
Class PseudoPersistentVariableInstance

java.lang.Object
  extended by org.camunda.bpm.engine.impl.core.variable.PseudoPersistentVariableInstance
All Implemented Interfaces:
CoreVariableInstance, PersistentVariableInstance

public class PseudoPersistentVariableInstance
extends Object
implements PersistentVariableInstance


Field Summary
protected  String name
           
protected  Object value
           
 
Constructor Summary
PseudoPersistentVariableInstance(String name, Object value)
           
 
Method Summary
 String getErrorMessage()
          If the variable value could not be loaded, this returns the error message.
 String getName()
          Returns the name of this variable instance.
 SerializedVariableValue getSerializedValue()
          Returns the value of this variable in its serialized form, represented by a SerializedVariableValue.
 String getTypeName()
          Returns the name of the type of this variable instance; corresponds to the types defined in ProcessEngineVariableType.
 Object getValue()
          Returns the value of this variable instance.
 String getValueTypeName()
          Returns the simple name of the class of the persisted variable
 boolean storesCustomObjects()
          Returns whether this variable potentially stores a custom java object (i.e.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

name

protected String name

value

protected Object value
Constructor Detail

PseudoPersistentVariableInstance

public PseudoPersistentVariableInstance(String name,
                                        Object value)
Method Detail

getName

public String getName()
Description copied from interface: CoreVariableInstance
Returns the name of this variable instance.

Specified by:
getName in interface CoreVariableInstance

getValue

public Object getValue()
Description copied from interface: CoreVariableInstance
Returns the value of this variable instance.

Specified by:
getValue in interface CoreVariableInstance

getErrorMessage

public String getErrorMessage()
Description copied from interface: PersistentVariableInstance
If the variable value could not be loaded, this returns the error message.

Specified by:
getErrorMessage in interface PersistentVariableInstance
Returns:
an error message indicating why the variable value could not be loaded.

getSerializedValue

public SerializedVariableValue getSerializedValue()
Description copied from interface: PersistentVariableInstance
Returns the value of this variable in its serialized form, represented by a SerializedVariableValue.

Specified by:
getSerializedValue in interface PersistentVariableInstance

getTypeName

public String getTypeName()
Description copied from interface: PersistentVariableInstance
Returns the name of the type of this variable instance; corresponds to the types defined in ProcessEngineVariableType.

Specified by:
getTypeName in interface PersistentVariableInstance

getValueTypeName

public String getValueTypeName()
Description copied from interface: PersistentVariableInstance
Returns the simple name of the class of the persisted variable

Specified by:
getValueTypeName in interface PersistentVariableInstance

storesCustomObjects

public boolean storesCustomObjects()
Description copied from interface: PersistentVariableInstance
Returns whether this variable potentially stores a custom java object (i.e. an instance of a non-JDK class). Return value is determined based on the underlying variable type (cf. ProcessEngineVariableType).

Specified by:
storesCustomObjects in interface PersistentVariableInstance


Copyright © 2014 camunda services GmbH. All Rights Reserved.