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 java.lang.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 StartProcessVariableScope
getSharedInstance()
Since aStartProcessVariableScope
has no state, it's safe to use the same instance to prevent too many useless instances created.java.lang.Object
getVariable(java.lang.String variableName)
java.lang.Object
getVariable(java.lang.String variableName, boolean deserializeObjectValue)
CoreVariableInstance
getVariableInstance(java.lang.String name)
CoreVariableInstance
getVariableInstanceLocal(java.lang.String name)
java.util.Map<java.lang.String,CoreVariableInstance>
getVariableInstances()
java.util.Map<java.lang.String,CoreVariableInstance>
getVariableInstancesLocal()
java.lang.Object
getVariableLocal(java.lang.String variableName)
java.lang.Object
getVariableLocal(java.lang.String variableName, boolean deserializeObjectValue)
<T extends TypedValue>
TgetVariableLocalTyped(java.lang.String variableName)
<T extends TypedValue>
TgetVariableLocalTyped(java.lang.String variableName, boolean deserializeObjectValue)
java.util.Set<java.lang.String>
getVariableNames()
java.util.Set<java.lang.String>
getVariableNamesLocal()
VariableMap
getVariables()
java.lang.String
getVariableScopeKey()
VariableMap
getVariablesLocal()
VariableMap
getVariablesLocalTyped()
VariableMap
getVariablesLocalTyped(boolean deserializeObjectValues)
VariableMap
getVariablesTyped()
VariableMap
getVariablesTyped(boolean deserializeObjectValues)
<T extends TypedValue>
TgetVariableTyped(java.lang.String variableName)
<T extends TypedValue>
TgetVariableTyped(java.lang.String variableName, boolean deserializeObjectValue)
boolean
hasVariable(java.lang.String variableName)
boolean
hasVariableLocal(java.lang.String variableName)
boolean
hasVariables()
boolean
hasVariablesLocal()
void
removeVariable(java.lang.String variableName)
Removes the variable and creates a newHistoricVariableUpdateEntity
.void
removeVariableLocal(java.lang.String variableName)
Removes the local variable and creates a newHistoricVariableUpdateEntity
.void
removeVariables()
Removes the (local) variables and creates a newHistoricVariableUpdateEntity
for each of them.void
removeVariables(java.util.Collection<java.lang.String> variableNames)
Removes the variables and creates a newHistoricVariableUpdateEntity
for each of them.void
removeVariablesLocal()
Removes the (local) variables and creates a newHistoricVariableUpdateEntity
for each of them.void
removeVariablesLocal(java.util.Collection<java.lang.String> variableNames)
Removes the local variables and creates a newHistoricVariableUpdateEntity
for each of them.void
setVariable(java.lang.String variableName, java.lang.Object value)
void
setVariableLocal(java.lang.String variableName, java.lang.Object value)
void
setVariables(java.util.Map<java.lang.String,? extends java.lang.Object> variables)
void
setVariablesLocal(java.util.Map<java.lang.String,? extends java.lang.Object> variables)
-
-
-
Method Detail
-
getSharedInstance
public static StartProcessVariableScope getSharedInstance()
Since aStartProcessVariableScope
has no state, it's safe to use the same instance to prevent too many useless instances created.
-
getVariableScopeKey
public java.lang.String getVariableScopeKey()
- Specified by:
getVariableScopeKey
in interfaceVariableScope
-
getVariables
public VariableMap getVariables()
- Specified by:
getVariables
in interfaceVariableScope
-
getVariablesLocal
public VariableMap getVariablesLocal()
- Specified by:
getVariablesLocal
in interfaceVariableScope
-
getVariable
public java.lang.Object getVariable(java.lang.String variableName)
- Specified by:
getVariable
in interfaceVariableScope
-
getVariableLocal
public java.lang.Object getVariableLocal(java.lang.String variableName)
- Specified by:
getVariableLocal
in interfaceVariableScope
-
getVariablesTyped
public VariableMap getVariablesTyped(boolean deserializeObjectValues)
- Specified by:
getVariablesTyped
in interfaceVariableScope
-
getVariablesLocalTyped
public VariableMap getVariablesLocalTyped()
- Specified by:
getVariablesLocalTyped
in interfaceVariableScope
-
getVariablesTyped
public VariableMap getVariablesTyped()
- Specified by:
getVariablesTyped
in interfaceVariableScope
-
getVariablesLocalTyped
public VariableMap getVariablesLocalTyped(boolean deserializeObjectValues)
- Specified by:
getVariablesLocalTyped
in interfaceVariableScope
-
getVariable
public java.lang.Object getVariable(java.lang.String variableName, boolean deserializeObjectValue)
-
getVariableLocal
public java.lang.Object getVariableLocal(java.lang.String variableName, boolean deserializeObjectValue)
-
getVariableTyped
public <T extends TypedValue> T getVariableTyped(java.lang.String variableName)
- Specified by:
getVariableTyped
in interfaceVariableScope
-
getVariableTyped
public <T extends TypedValue> T getVariableTyped(java.lang.String variableName, boolean deserializeObjectValue)
- Specified by:
getVariableTyped
in interfaceVariableScope
-
getVariableLocalTyped
public <T extends TypedValue> T getVariableLocalTyped(java.lang.String variableName)
- Specified by:
getVariableLocalTyped
in interfaceVariableScope
-
getVariableLocalTyped
public <T extends TypedValue> T getVariableLocalTyped(java.lang.String variableName, boolean deserializeObjectValue)
- Specified by:
getVariableLocalTyped
in interfaceVariableScope
-
getVariableNames
public java.util.Set<java.lang.String> getVariableNames()
- Specified by:
getVariableNames
in interfaceVariableScope
-
getVariableNamesLocal
public java.util.Set<java.lang.String> getVariableNamesLocal()
- Specified by:
getVariableNamesLocal
in interfaceVariableScope
-
setVariable
public void setVariable(java.lang.String variableName, java.lang.Object value)
- Specified by:
setVariable
in interfaceVariableScope
-
setVariableLocal
public void setVariableLocal(java.lang.String variableName, java.lang.Object value)
- Specified by:
setVariableLocal
in interfaceVariableScope
-
setVariables
public void setVariables(java.util.Map<java.lang.String,? extends java.lang.Object> variables)
- Specified by:
setVariables
in interfaceVariableScope
-
setVariablesLocal
public void setVariablesLocal(java.util.Map<java.lang.String,? extends java.lang.Object> variables)
- Specified by:
setVariablesLocal
in interfaceVariableScope
-
hasVariables
public boolean hasVariables()
- Specified by:
hasVariables
in interfaceVariableScope
-
hasVariablesLocal
public boolean hasVariablesLocal()
- Specified by:
hasVariablesLocal
in interfaceVariableScope
-
hasVariable
public boolean hasVariable(java.lang.String variableName)
- Specified by:
hasVariable
in interfaceVariableScope
-
hasVariableLocal
public boolean hasVariableLocal(java.lang.String variableName)
- Specified by:
hasVariableLocal
in interfaceVariableScope
-
removeVariable
public void removeVariable(java.lang.String variableName)
Description copied from interface:VariableScope
Removes the variable and creates a newHistoricVariableUpdateEntity
.- Specified by:
removeVariable
in interfaceVariableScope
-
removeVariableLocal
public void removeVariableLocal(java.lang.String variableName)
Description copied from interface:VariableScope
Removes the local variable and creates a newHistoricVariableUpdateEntity
.- Specified by:
removeVariableLocal
in interfaceVariableScope
-
removeVariables
public void removeVariables()
Description copied from interface:VariableScope
Removes the (local) variables and creates a newHistoricVariableUpdateEntity
for each of them.- Specified by:
removeVariables
in interfaceVariableScope
-
removeVariablesLocal
public void removeVariablesLocal()
Description copied from interface:VariableScope
Removes the (local) variables and creates a newHistoricVariableUpdateEntity
for each of them.- Specified by:
removeVariablesLocal
in interfaceVariableScope
-
removeVariables
public void removeVariables(java.util.Collection<java.lang.String> variableNames)
Description copied from interface:VariableScope
Removes the variables and creates a newHistoricVariableUpdateEntity
for each of them.- Specified by:
removeVariables
in interfaceVariableScope
-
removeVariablesLocal
public void removeVariablesLocal(java.util.Collection<java.lang.String> variableNames)
Description copied from interface:VariableScope
Removes the local variables and creates a newHistoricVariableUpdateEntity
for each of them.- Specified by:
removeVariablesLocal
in interfaceVariableScope
-
getVariableInstances
public java.util.Map<java.lang.String,CoreVariableInstance> getVariableInstances()
-
getVariableInstance
public CoreVariableInstance getVariableInstance(java.lang.String name)
-
getVariableInstancesLocal
public java.util.Map<java.lang.String,CoreVariableInstance> getVariableInstancesLocal()
-
getVariableInstanceLocal
public CoreVariableInstance getVariableInstanceLocal(java.lang.String name)
-
-