Package org.camunda.bpm.engine.impl.el
Class StartProcessVariableScope
- java.lang.Object
-
- 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
Constructors Constructor Description StartProcessVariableScope()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static StartProcessVariableScopegetSharedInstance()Since aStartProcessVariableScopehas no state, it's safe to use the same instance to prevent too many useless instances created.ObjectgetVariable(String variableName)ObjectgetVariable(String variableName, boolean deserializeObjectValue)CoreVariableInstancegetVariableInstance(String name)CoreVariableInstancegetVariableInstanceLocal(String name)Map<String,CoreVariableInstance>getVariableInstances()Map<String,CoreVariableInstance>getVariableInstancesLocal()ObjectgetVariableLocal(String variableName)ObjectgetVariableLocal(String variableName, boolean deserializeObjectValue)<T extends TypedValue>
TgetVariableLocalTyped(String variableName)<T extends TypedValue>
TgetVariableLocalTyped(String variableName, boolean deserializeObjectValue)Set<String>getVariableNames()Set<String>getVariableNamesLocal()VariableMapgetVariables()StringgetVariableScopeKey()VariableMapgetVariablesLocal()VariableMapgetVariablesLocalTyped()VariableMapgetVariablesLocalTyped(boolean deserializeObjectValues)VariableMapgetVariablesTyped()VariableMapgetVariablesTyped(boolean deserializeObjectValues)<T extends TypedValue>
TgetVariableTyped(String variableName)<T extends TypedValue>
TgetVariableTyped(String variableName, boolean deserializeObjectValue)booleanhasVariable(String variableName)booleanhasVariableLocal(String variableName)booleanhasVariables()booleanhasVariablesLocal()voidremoveVariable(String variableName)Removes the variable and creates a newHistoricVariableUpdateEntity.voidremoveVariableLocal(String variableName)Removes the local variable and creates a newHistoricVariableUpdateEntity.voidremoveVariables()Removes the (local) variables and creates a newHistoricVariableUpdateEntityfor each of them.voidremoveVariables(Collection<String> variableNames)Removes the variables and creates a newHistoricVariableUpdateEntityfor each of them.voidremoveVariablesLocal()Removes the (local) variables and creates a newHistoricVariableUpdateEntityfor each of them.voidremoveVariablesLocal(Collection<String> variableNames)Removes the local variables and creates a newHistoricVariableUpdateEntityfor each of them.voidsetVariable(String variableName, Object value)voidsetVariableLocal(String variableName, Object value)voidsetVariables(Map<String,? extends Object> variables)voidsetVariablesLocal(Map<String,? extends Object> variables)
-
-
-
Method Detail
-
getSharedInstance
public static StartProcessVariableScope getSharedInstance()
Since aStartProcessVariableScopehas no state, it's safe to use the same instance to prevent too many useless instances created.
-
getVariableScopeKey
public String getVariableScopeKey()
- Specified by:
getVariableScopeKeyin interfaceVariableScope
-
getVariables
public VariableMap getVariables()
- Specified by:
getVariablesin interfaceVariableScope
-
getVariablesLocal
public VariableMap getVariablesLocal()
- Specified by:
getVariablesLocalin interfaceVariableScope
-
getVariable
public Object getVariable(String variableName)
- Specified by:
getVariablein interfaceVariableScope
-
getVariableLocal
public Object getVariableLocal(String variableName)
- Specified by:
getVariableLocalin interfaceVariableScope
-
getVariablesTyped
public VariableMap getVariablesTyped(boolean deserializeObjectValues)
- Specified by:
getVariablesTypedin interfaceVariableScope
-
getVariablesLocalTyped
public VariableMap getVariablesLocalTyped()
- Specified by:
getVariablesLocalTypedin interfaceVariableScope
-
getVariablesTyped
public VariableMap getVariablesTyped()
- Specified by:
getVariablesTypedin interfaceVariableScope
-
getVariablesLocalTyped
public VariableMap getVariablesLocalTyped(boolean deserializeObjectValues)
- Specified by:
getVariablesLocalTypedin interfaceVariableScope
-
getVariableLocal
public Object getVariableLocal(String variableName, boolean deserializeObjectValue)
-
getVariableTyped
public <T extends TypedValue> T getVariableTyped(String variableName)
- Specified by:
getVariableTypedin interfaceVariableScope
-
getVariableTyped
public <T extends TypedValue> T getVariableTyped(String variableName, boolean deserializeObjectValue)
- Specified by:
getVariableTypedin interfaceVariableScope
-
getVariableLocalTyped
public <T extends TypedValue> T getVariableLocalTyped(String variableName)
- Specified by:
getVariableLocalTypedin interfaceVariableScope
-
getVariableLocalTyped
public <T extends TypedValue> T getVariableLocalTyped(String variableName, boolean deserializeObjectValue)
- Specified by:
getVariableLocalTypedin interfaceVariableScope
-
getVariableNames
public Set<String> getVariableNames()
- Specified by:
getVariableNamesin interfaceVariableScope
-
getVariableNamesLocal
public Set<String> getVariableNamesLocal()
- Specified by:
getVariableNamesLocalin interfaceVariableScope
-
setVariable
public void setVariable(String variableName, Object value)
- Specified by:
setVariablein interfaceVariableScope
-
setVariableLocal
public void setVariableLocal(String variableName, Object value)
- Specified by:
setVariableLocalin interfaceVariableScope
-
setVariables
public void setVariables(Map<String,? extends Object> variables)
- Specified by:
setVariablesin interfaceVariableScope
-
setVariablesLocal
public void setVariablesLocal(Map<String,? extends Object> variables)
- Specified by:
setVariablesLocalin interfaceVariableScope
-
hasVariables
public boolean hasVariables()
- Specified by:
hasVariablesin interfaceVariableScope
-
hasVariablesLocal
public boolean hasVariablesLocal()
- Specified by:
hasVariablesLocalin interfaceVariableScope
-
hasVariable
public boolean hasVariable(String variableName)
- Specified by:
hasVariablein interfaceVariableScope
-
hasVariableLocal
public boolean hasVariableLocal(String variableName)
- Specified by:
hasVariableLocalin interfaceVariableScope
-
removeVariable
public void removeVariable(String variableName)
Description copied from interface:VariableScopeRemoves the variable and creates a newHistoricVariableUpdateEntity.- Specified by:
removeVariablein interfaceVariableScope
-
removeVariableLocal
public void removeVariableLocal(String variableName)
Description copied from interface:VariableScopeRemoves the local variable and creates a newHistoricVariableUpdateEntity.- Specified by:
removeVariableLocalin interfaceVariableScope
-
removeVariables
public void removeVariables()
Description copied from interface:VariableScopeRemoves the (local) variables and creates a newHistoricVariableUpdateEntityfor each of them.- Specified by:
removeVariablesin interfaceVariableScope
-
removeVariablesLocal
public void removeVariablesLocal()
Description copied from interface:VariableScopeRemoves the (local) variables and creates a newHistoricVariableUpdateEntityfor each of them.- Specified by:
removeVariablesLocalin interfaceVariableScope
-
removeVariables
public void removeVariables(Collection<String> variableNames)
Description copied from interface:VariableScopeRemoves the variables and creates a newHistoricVariableUpdateEntityfor each of them.- Specified by:
removeVariablesin interfaceVariableScope
-
removeVariablesLocal
public void removeVariablesLocal(Collection<String> variableNames)
Description copied from interface:VariableScopeRemoves the local variables and creates a newHistoricVariableUpdateEntityfor each of them.- Specified by:
removeVariablesLocalin interfaceVariableScope
-
getVariableInstances
public Map<String,CoreVariableInstance> getVariableInstances()
-
getVariableInstance
public CoreVariableInstance getVariableInstance(String name)
-
getVariableInstancesLocal
public Map<String,CoreVariableInstance> getVariableInstancesLocal()
-
getVariableInstanceLocal
public CoreVariableInstance getVariableInstanceLocal(String name)
-
-