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 StartProcessVariableScope
getSharedInstance()
Since aStartProcessVariableScope
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 TypedValue>
TgetVariableLocalTyped(String variableName)
<T extends TypedValue>
TgetVariableLocalTyped(String variableName, boolean deserializeObjectValue)
Set<String>
getVariableNames()
Set<String>
getVariableNamesLocal()
VariableMap
getVariables()
String
getVariableScopeKey()
VariableMap
getVariablesLocal()
VariableMap
getVariablesLocalTyped()
VariableMap
getVariablesLocalTyped(boolean deserializeObjectValues)
VariableMap
getVariablesTyped()
VariableMap
getVariablesTyped(boolean deserializeObjectValues)
<T extends TypedValue>
TgetVariableTyped(String variableName)
<T extends TypedValue>
TgetVariableTyped(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 newHistoricVariableUpdateEntity
.void
removeVariableLocal(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(Collection<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(Collection<String> variableNames)
Removes the local variables and creates a newHistoricVariableUpdateEntity
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)
-
-
-
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 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 Object getVariable(String variableName)
- Specified by:
getVariable
in interfaceVariableScope
-
getVariableLocal
public Object getVariableLocal(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
-
getVariableLocal
public Object getVariableLocal(String variableName, boolean deserializeObjectValue)
-
getVariableTyped
public <T extends TypedValue> T getVariableTyped(String variableName)
- Specified by:
getVariableTyped
in interfaceVariableScope
-
getVariableTyped
public <T extends TypedValue> T getVariableTyped(String variableName, boolean deserializeObjectValue)
- Specified by:
getVariableTyped
in interfaceVariableScope
-
getVariableLocalTyped
public <T extends TypedValue> T getVariableLocalTyped(String variableName)
- Specified by:
getVariableLocalTyped
in interfaceVariableScope
-
getVariableLocalTyped
public <T extends TypedValue> T getVariableLocalTyped(String variableName, boolean deserializeObjectValue)
- Specified by:
getVariableLocalTyped
in interfaceVariableScope
-
getVariableNames
public Set<String> getVariableNames()
- Specified by:
getVariableNames
in interfaceVariableScope
-
getVariableNamesLocal
public Set<String> getVariableNamesLocal()
- Specified by:
getVariableNamesLocal
in interfaceVariableScope
-
setVariable
public void setVariable(String variableName, Object value)
- Specified by:
setVariable
in interfaceVariableScope
-
setVariableLocal
public void setVariableLocal(String variableName, Object value)
- Specified by:
setVariableLocal
in interfaceVariableScope
-
setVariables
public void setVariables(Map<String,? extends Object> variables)
- Specified by:
setVariables
in interfaceVariableScope
-
setVariablesLocal
public void setVariablesLocal(Map<String,? extends 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(String variableName)
- Specified by:
hasVariable
in interfaceVariableScope
-
hasVariableLocal
public boolean hasVariableLocal(String variableName)
- Specified by:
hasVariableLocal
in interfaceVariableScope
-
removeVariable
public void removeVariable(String variableName)
Description copied from interface:VariableScope
Removes the variable and creates a newHistoricVariableUpdateEntity
.- Specified by:
removeVariable
in interfaceVariableScope
-
removeVariableLocal
public void removeVariableLocal(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(Collection<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(Collection<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 Map<String,CoreVariableInstance> getVariableInstances()
-
getVariableInstance
public CoreVariableInstance getVariableInstance(String name)
-
getVariableInstancesLocal
public Map<String,CoreVariableInstance> getVariableInstancesLocal()
-
getVariableInstanceLocal
public CoreVariableInstance getVariableInstanceLocal(String name)
-
-