|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.camunda.bpm.engine.impl.core.variable.CoreVariableScope<T>
public abstract class CoreVariableScope<T extends CoreVariableInstance>
| Field Summary | |
|---|---|
protected ELContext |
cachedElContext
|
| Constructor Summary | |
|---|---|
CoreVariableScope()
|
|
| Method Summary | |
|---|---|
Map<String,T> |
collectVariableInstances(Map<String,T> variables,
Collection<String> variableNames)
|
protected Set<String> |
collectVariableNames(Set<String> variableNames)
|
protected Map<String,Object> |
collectVariables(HashMap<String,Object> variables)
|
ELContext |
getCachedElContext()
|
abstract CoreVariableScope<T> |
getParentVariableScope()
|
protected CoreVariableScope<T> |
getSourceActivityVariableScope()
|
Object |
getVariable(String variableName)
|
T |
getVariableInstance(String variableName)
Returns a single variable instance from either this scope or any of its parents. |
T |
getVariableInstanceLocal(String name)
Returns a single variable instance that this scope holds. |
Map<String,T> |
getVariableInstances()
Returns this scope's and its parent's (grandparents etc.) variables as variable instance objects. |
Map<String,T> |
getVariableInstances(Collection<String> variableNames)
|
Map<String,T> |
getVariableInstancesLocal()
Returns the variable instances that this scope holds. |
Object |
getVariableLocal(String variableName)
|
Set<String> |
getVariableNames()
|
Set<String> |
getVariableNamesLocal()
|
Map<String,Object> |
getVariables()
|
Map<String,Object> |
getVariablesLocal()
|
protected abstract CoreVariableStore<T> |
getVariableStore()
|
boolean |
hasVariable(String variableName)
|
boolean |
hasVariableLocal(String variableName)
|
boolean |
hasVariables()
|
boolean |
hasVariablesLocal()
|
void |
removeVariable(String variableName)
Removes the variable and creates a new HistoricVariableUpdateEntity. |
protected void |
removeVariable(String variableName,
CoreVariableScope<T> sourceActivityExecution)
|
void |
removeVariableLocal(String variableName)
Removes the local variable and creates a new HistoricVariableUpdateEntity. |
protected void |
removeVariableLocal(String variableName,
CoreVariableScope<T> sourceActivityExecution)
|
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 |
setCachedElContext(ELContext cachedElContext)
|
void |
setVariable(String variableName,
Object value)
|
protected void |
setVariable(String variableName,
Object value,
CoreVariableScope<T> sourceActivityExecution)
|
void |
setVariableLocal(String variableName,
Object value)
|
void |
setVariableLocal(String variableName,
Object value,
CoreVariableScope<T> sourceActivityExecution)
|
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 |
| Field Detail |
|---|
protected ELContext cachedElContext
| Constructor Detail |
|---|
public CoreVariableScope()
| Method Detail |
|---|
protected abstract CoreVariableStore<T> getVariableStore()
public abstract CoreVariableScope<T> getParentVariableScope()
public Map<String,Object> getVariables()
getVariables in interface VariableScope<T extends CoreVariableInstance>public Map<String,T> getVariableInstances()
VariableScope
getVariableInstances in interface VariableScope<T extends CoreVariableInstance>public Map<String,T> getVariableInstancesLocal()
VariableScope
getVariableInstancesLocal in interface VariableScope<T extends CoreVariableInstance>public Map<String,T> getVariableInstances(Collection<String> variableNames)
public Map<String,T> collectVariableInstances(Map<String,T> variables,
Collection<String> variableNames)
protected Map<String,Object> collectVariables(HashMap<String,Object> variables)
public Object getVariable(String variableName)
getVariable in interface VariableScope<T extends CoreVariableInstance>public Object getVariableLocal(String variableName)
getVariableLocal in interface VariableScope<T extends CoreVariableInstance>public T getVariableInstance(String variableName)
VariableScope
getVariableInstance in interface VariableScope<T extends CoreVariableInstance>public T getVariableInstanceLocal(String name)
VariableScope
getVariableInstanceLocal in interface VariableScope<T extends CoreVariableInstance>public boolean hasVariables()
hasVariables in interface VariableScope<T extends CoreVariableInstance>public boolean hasVariablesLocal()
hasVariablesLocal in interface VariableScope<T extends CoreVariableInstance>public boolean hasVariable(String variableName)
hasVariable in interface VariableScope<T extends CoreVariableInstance>public boolean hasVariableLocal(String variableName)
hasVariableLocal in interface VariableScope<T extends CoreVariableInstance>protected Set<String> collectVariableNames(Set<String> variableNames)
public Set<String> getVariableNames()
getVariableNames in interface VariableScope<T extends CoreVariableInstance>public Map<String,Object> getVariablesLocal()
getVariablesLocal in interface VariableScope<T extends CoreVariableInstance>public Set<String> getVariableNamesLocal()
getVariableNamesLocal in interface VariableScope<T extends CoreVariableInstance>public void setVariables(Map<String,? extends Object> variables)
setVariables in interface VariableScope<T extends CoreVariableInstance>public void setVariablesLocal(Map<String,? extends Object> variables)
setVariablesLocal in interface VariableScope<T extends CoreVariableInstance>public void removeVariables()
VariableScopeHistoricVariableUpdateEntity for each of them.
removeVariables in interface VariableScope<T extends CoreVariableInstance>public void removeVariablesLocal()
VariableScopeHistoricVariableUpdateEntity for each of them.
removeVariablesLocal in interface VariableScope<T extends CoreVariableInstance>public void removeVariables(Collection<String> variableNames)
VariableScopeHistoricVariableUpdateEntity for each of them.
removeVariables in interface VariableScope<T extends CoreVariableInstance>public void removeVariablesLocal(Collection<String> variableNames)
VariableScopeHistoricVariableUpdateEntity for each of them.
removeVariablesLocal in interface VariableScope<T extends CoreVariableInstance>
public void setVariable(String variableName,
Object value)
setVariable in interface VariableScope<T extends CoreVariableInstance>
protected void setVariable(String variableName,
Object value,
CoreVariableScope<T> sourceActivityExecution)
public void setVariableLocal(String variableName,
Object value,
CoreVariableScope<T> sourceActivityExecution)
public void setVariableLocal(String variableName,
Object value)
setVariableLocal in interface VariableScope<T extends CoreVariableInstance>public void removeVariable(String variableName)
VariableScopeHistoricVariableUpdateEntity.
removeVariable in interface VariableScope<T extends CoreVariableInstance>
protected void removeVariable(String variableName,
CoreVariableScope<T> sourceActivityExecution)
public void removeVariableLocal(String variableName)
VariableScopeHistoricVariableUpdateEntity.
removeVariableLocal in interface VariableScope<T extends CoreVariableInstance>protected CoreVariableScope<T> getSourceActivityVariableScope()
protected void removeVariableLocal(String variableName,
CoreVariableScope<T> sourceActivityExecution)
public ELContext getCachedElContext()
public void setCachedElContext(ELContext cachedElContext)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||