org.camunda.bpm.engine.impl.el
Class StartProcessVariableScope

java.lang.Object
  extended by org.camunda.bpm.engine.impl.el.StartProcessVariableScope
All Implemented Interfaces:
VariableScope

public class StartProcessVariableScope
extends Object
implements VariableScope

Variable-scope only used to resolve variables when NO execution is active but expression-resolving is needed. This occurs eg. when start-form properties have default's defined. Even though variables are not available yet, expressions should be resolved anyway.

Author:
Frederik Heremans

Constructor Summary
StartProcessVariableScope()
           
 
Method Summary
static StartProcessVariableScope getSharedInstance()
          Since a StartProcessVariableScope has no state, it's safe to use the same instance to prevent too many useless instances created.
 Object getVariable(String variableName)
           
 Object getVariable(String variableName, boolean deserializeObjectValue)
           
 CoreVariableInstance getVariableInstance(String name)
           
 CoreVariableInstance getVariableInstanceLocal(String name)
           
 Map<String,CoreVariableInstance> getVariableInstances()
           
 Map<String,CoreVariableInstance> getVariableInstancesLocal()
           
 Object getVariableLocal(String variableName)
           
 Object getVariableLocal(String variableName, boolean deserializeObjectValue)
           
<T extends org.camunda.bpm.engine.variable.value.TypedValue>
T
getVariableLocalTyped(String variableName)
           
<T extends org.camunda.bpm.engine.variable.value.TypedValue>
T
getVariableLocalTyped(String variableName, boolean deserializeObjectValue)
           
 Set<String> getVariableNames()
           
 Set<String> getVariableNamesLocal()
           
 org.camunda.bpm.engine.variable.VariableMap getVariables()
           
 String getVariableScopeKey()
           
 org.camunda.bpm.engine.variable.VariableMap getVariablesLocal()
           
 org.camunda.bpm.engine.variable.VariableMap getVariablesLocalTyped()
           
 org.camunda.bpm.engine.variable.VariableMap getVariablesLocalTyped(boolean deserializeObjectValues)
           
 org.camunda.bpm.engine.variable.VariableMap getVariablesTyped()
           
 org.camunda.bpm.engine.variable.VariableMap getVariablesTyped(boolean deserializeObjectValues)
           
<T extends org.camunda.bpm.engine.variable.value.TypedValue>
T
getVariableTyped(String variableName)
           
<T extends org.camunda.bpm.engine.variable.value.TypedValue>
T
getVariableTyped(String variableName, boolean deserializeObjectValue)
           
 boolean hasVariable(String variableName)
           
 boolean hasVariableLocal(String variableName)
           
 boolean hasVariables()
           
 boolean hasVariablesLocal()
           
 void removeVariable(String variableName)
          Removes the variable and creates a new HistoricVariableUpdateEntity.
 void removeVariableLocal(String variableName)
          Removes the local variable and creates a new HistoricVariableUpdateEntity.
 void removeVariables()
          Removes the (local) variables and creates a new HistoricVariableUpdateEntity for each of them.
 void removeVariables(Collection<String> variableNames)
          Removes the variables and creates a new HistoricVariableUpdateEntity for each of them.
 void removeVariablesLocal()
          Removes the (local) variables and creates a new HistoricVariableUpdateEntity for each of them.
 void removeVariablesLocal(Collection<String> variableNames)
          Removes the local variables and creates a new HistoricVariableUpdateEntity for each of them.
 void setVariable(String variableName, Object value)
           
 void setVariableLocal(String variableName, Object value)
           
 void setVariables(Map<String,? extends Object> variables)
           
 void setVariablesLocal(Map<String,? extends Object> variables)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StartProcessVariableScope

public StartProcessVariableScope()
Method Detail

getSharedInstance

public static StartProcessVariableScope getSharedInstance()
Since a StartProcessVariableScope has no state, it's safe to use the same instance to prevent too many useless instances created.


getVariableScopeKey

public String getVariableScopeKey()
Specified by:
getVariableScopeKey in interface VariableScope

getVariables

public org.camunda.bpm.engine.variable.VariableMap getVariables()
Specified by:
getVariables in interface VariableScope

getVariablesLocal

public org.camunda.bpm.engine.variable.VariableMap getVariablesLocal()
Specified by:
getVariablesLocal in interface VariableScope

getVariable

public Object getVariable(String variableName)
Specified by:
getVariable in interface VariableScope

getVariableLocal

public Object getVariableLocal(String variableName)
Specified by:
getVariableLocal in interface VariableScope

getVariablesTyped

public org.camunda.bpm.engine.variable.VariableMap getVariablesTyped(boolean deserializeObjectValues)
Specified by:
getVariablesTyped in interface VariableScope

getVariablesLocalTyped

public org.camunda.bpm.engine.variable.VariableMap getVariablesLocalTyped()
Specified by:
getVariablesLocalTyped in interface VariableScope

getVariablesTyped

public org.camunda.bpm.engine.variable.VariableMap getVariablesTyped()
Specified by:
getVariablesTyped in interface VariableScope

getVariablesLocalTyped

public org.camunda.bpm.engine.variable.VariableMap getVariablesLocalTyped(boolean deserializeObjectValues)
Specified by:
getVariablesLocalTyped in interface VariableScope

getVariable

public Object getVariable(String variableName,
                          boolean deserializeObjectValue)

getVariableLocal

public Object getVariableLocal(String variableName,
                               boolean deserializeObjectValue)

getVariableTyped

public <T extends org.camunda.bpm.engine.variable.value.TypedValue> T getVariableTyped(String variableName)
Specified by:
getVariableTyped in interface VariableScope

getVariableTyped

public <T extends org.camunda.bpm.engine.variable.value.TypedValue> T getVariableTyped(String variableName,
                                                                                       boolean deserializeObjectValue)
Specified by:
getVariableTyped in interface VariableScope

getVariableLocalTyped

public <T extends org.camunda.bpm.engine.variable.value.TypedValue> T getVariableLocalTyped(String variableName)
Specified by:
getVariableLocalTyped in interface VariableScope

getVariableLocalTyped

public <T extends org.camunda.bpm.engine.variable.value.TypedValue> T getVariableLocalTyped(String variableName,
                                                                                            boolean deserializeObjectValue)
Specified by:
getVariableLocalTyped in interface VariableScope

getVariableNames

public Set<String> getVariableNames()
Specified by:
getVariableNames in interface VariableScope

getVariableNamesLocal

public Set<String> getVariableNamesLocal()
Specified by:
getVariableNamesLocal in interface VariableScope

setVariable

public void setVariable(String variableName,
                        Object value)
Specified by:
setVariable in interface VariableScope

setVariableLocal

public void setVariableLocal(String variableName,
                             Object value)
Specified by:
setVariableLocal in interface VariableScope

setVariables

public void setVariables(Map<String,? extends Object> variables)
Specified by:
setVariables in interface VariableScope

setVariablesLocal

public void setVariablesLocal(Map<String,? extends Object> variables)
Specified by:
setVariablesLocal in interface VariableScope

hasVariables

public boolean hasVariables()
Specified by:
hasVariables in interface VariableScope

hasVariablesLocal

public boolean hasVariablesLocal()
Specified by:
hasVariablesLocal in interface VariableScope

hasVariable

public boolean hasVariable(String variableName)
Specified by:
hasVariable in interface VariableScope

hasVariableLocal

public boolean hasVariableLocal(String variableName)
Specified by:
hasVariableLocal in interface VariableScope

removeVariable

public void removeVariable(String variableName)
Description copied from interface: VariableScope
Removes the variable and creates a new HistoricVariableUpdateEntity.

Specified by:
removeVariable in interface VariableScope

removeVariableLocal

public void removeVariableLocal(String variableName)
Description copied from interface: VariableScope
Removes the local variable and creates a new HistoricVariableUpdateEntity.

Specified by:
removeVariableLocal in interface VariableScope

removeVariables

public void removeVariables()
Description copied from interface: VariableScope
Removes the (local) variables and creates a new HistoricVariableUpdateEntity for each of them.

Specified by:
removeVariables in interface VariableScope

removeVariablesLocal

public void removeVariablesLocal()
Description copied from interface: VariableScope
Removes the (local) variables and creates a new HistoricVariableUpdateEntity for each of them.

Specified by:
removeVariablesLocal in interface VariableScope

removeVariables

public void removeVariables(Collection<String> variableNames)
Description copied from interface: VariableScope
Removes the variables and creates a new HistoricVariableUpdateEntity for each of them.

Specified by:
removeVariables in interface VariableScope

removeVariablesLocal

public void removeVariablesLocal(Collection<String> variableNames)
Description copied from interface: VariableScope
Removes the local variables and creates a new HistoricVariableUpdateEntity for each of them.

Specified by:
removeVariablesLocal in interface VariableScope

getVariableInstances

public Map<String,CoreVariableInstance> getVariableInstances()

getVariableInstance

public CoreVariableInstance getVariableInstance(String name)

getVariableInstancesLocal

public Map<String,CoreVariableInstance> getVariableInstancesLocal()

getVariableInstanceLocal

public CoreVariableInstance getVariableInstanceLocal(String name)


Copyright © 2016 camunda services GmbH. All rights reserved.