public interface VariableScope
Modifier and Type | Method and Description |
---|---|
void |
createVariableLocal(String variableName,
Object value) |
Object |
getVariable(String variableName) |
Object |
getVariable(String variableName,
boolean fetchAllVariables) |
<T> T |
getVariable(String variableName,
Class<T> variableClass) |
org.activiti.engine.impl.persistence.entity.VariableInstance |
getVariableInstance(String variableName) |
org.activiti.engine.impl.persistence.entity.VariableInstance |
getVariableInstance(String variableName,
boolean fetchAllVariables) |
org.activiti.engine.impl.persistence.entity.VariableInstance |
getVariableInstanceLocal(String variableName) |
org.activiti.engine.impl.persistence.entity.VariableInstance |
getVariableInstanceLocal(String variableName,
boolean fetchAllVariables) |
Map<String,org.activiti.engine.impl.persistence.entity.VariableInstance> |
getVariableInstances() |
Map<String,org.activiti.engine.impl.persistence.entity.VariableInstance> |
getVariableInstances(Collection<String> variableNames) |
Map<String,org.activiti.engine.impl.persistence.entity.VariableInstance> |
getVariableInstances(Collection<String> variableNames,
boolean fetchAllVariables) |
Map<String,org.activiti.engine.impl.persistence.entity.VariableInstance> |
getVariableInstancesLocal() |
Map<String,org.activiti.engine.impl.persistence.entity.VariableInstance> |
getVariableInstancesLocal(Collection<String> variableNames) |
Map<String,org.activiti.engine.impl.persistence.entity.VariableInstance> |
getVariableInstancesLocal(Collection<String> variableNames,
boolean fetchAllVariables) |
Object |
getVariableLocal(String variableName) |
Object |
getVariableLocal(String variableName,
boolean fetchAllVariables) |
<T> T |
getVariableLocal(String variableName,
Class<T> variableClass) |
Set<String> |
getVariableNames() |
Set<String> |
getVariableNamesLocal() |
Map<String,Object> |
getVariables() |
Map<String,Object> |
getVariables(Collection<String> variableNames) |
Map<String,Object> |
getVariables(Collection<String> variableNames,
boolean fetchAllVariables) |
Map<String,Object> |
getVariablesLocal() |
Map<String,Object> |
getVariablesLocal(Collection<String> variableNames) |
Map<String,Object> |
getVariablesLocal(Collection<String> variableNames,
boolean fetchAllVariables) |
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)
Sets the variable with the provided name to the provided value.
|
void |
setVariable(String variableName,
Object value,
boolean fetchAllVariables) |
Object |
setVariableLocal(String variableName,
Object value) |
Object |
setVariableLocal(String variableName,
Object value,
boolean fetchAllVariables) |
void |
setVariables(Map<String,? extends Object> variables)
Sets the provided variables to the variable scope.
|
void |
setVariablesLocal(Map<String,? extends Object> variables) |
Map<String,org.activiti.engine.impl.persistence.entity.VariableInstance> getVariableInstances()
Map<String,Object> getVariables(Collection<String> variableNames)
Map<String,org.activiti.engine.impl.persistence.entity.VariableInstance> getVariableInstances(Collection<String> variableNames)
Map<String,Object> getVariables(Collection<String> variableNames, boolean fetchAllVariables)
Map<String,org.activiti.engine.impl.persistence.entity.VariableInstance> getVariableInstances(Collection<String> variableNames, boolean fetchAllVariables)
Map<String,org.activiti.engine.impl.persistence.entity.VariableInstance> getVariableInstancesLocal()
Map<String,Object> getVariablesLocal(Collection<String> variableNames)
Map<String,org.activiti.engine.impl.persistence.entity.VariableInstance> getVariableInstancesLocal(Collection<String> variableNames)
Map<String,Object> getVariablesLocal(Collection<String> variableNames, boolean fetchAllVariables)
Map<String,org.activiti.engine.impl.persistence.entity.VariableInstance> getVariableInstancesLocal(Collection<String> variableNames, boolean fetchAllVariables)
org.activiti.engine.impl.persistence.entity.VariableInstance getVariableInstance(String variableName)
org.activiti.engine.impl.persistence.entity.VariableInstance getVariableInstance(String variableName, boolean fetchAllVariables)
org.activiti.engine.impl.persistence.entity.VariableInstance getVariableInstanceLocal(String variableName)
org.activiti.engine.impl.persistence.entity.VariableInstance getVariableInstanceLocal(String variableName, boolean fetchAllVariables)
void setVariable(String variableName, Object value)
A variable is set according to the following algorithm:
In practice for most cases, this algorithm will set variables to the scope of the execution at the process instance’s root level, if there is no execution-local variable by the provided name.
variableName
- the name of the variable to be setvalue
- the value of the variable to be setObject setVariableLocal(String variableName, Object value, boolean fetchAllVariables)
void setVariables(Map<String,? extends Object> variables)
Variables are set according algorithm for
setVariable(String, Object)
, applied separately to each variable.
variables
- a map of keys and values for the variables to be set{@link VariableScope#setVariable(String, Object)}
boolean hasVariables()
boolean hasVariablesLocal()
boolean hasVariable(String variableName)
boolean hasVariableLocal(String variableName)
void removeVariable(String variableName)
HistoricVariableUpdateEntity
.void removeVariableLocal(String variableName)
HistoricVariableUpdateEntity
.void removeVariables(Collection<String> variableNames)
HistoricVariableUpdateEntity
for each of them.void removeVariablesLocal(Collection<String> variableNames)
HistoricVariableUpdateEntity
for each of them.void removeVariables()
HistoricVariableUpdateEntity
for each of them.void removeVariablesLocal()
HistoricVariableUpdateEntity
for each of them.Copyright © 2016 Alfresco. All rights reserved.