org.activiti.engine.impl.persistence.entity
类 VariableScopeImpl

java.lang.Object
  继承者 org.activiti.engine.impl.persistence.entity.VariableScopeImpl
所有已实现的接口:
Serializable, VariableScope
直接已知子类:
ExecutionEntity, TaskEntity

public abstract class VariableScopeImpl
extends Object
implements Serializable, VariableScope

作者:
Tom Baeyens, Joram Barrez, Tijs Rademakers
另请参见:
序列化表格

字段摘要
protected  ELContext cachedElContext
           
protected  String id
           
protected  Map<String,VariableInstanceEntity> variableInstances
           
 
构造方法摘要
VariableScopeImpl()
           
 
方法摘要
protected  Set<String> collectVariableNames(Set<String> variableNames)
           
protected  Map<String,Object> collectVariables(HashMap<String,Object> variables)
           
protected  VariableInstanceEntity createVariableInstance(String variableName, Object value, ExecutionEntity sourceActivityExecution)
           
 void createVariableLocal(String variableName, Object value)
           
protected  void createVariableLocal(String variableName, Object value, ExecutionEntity sourceActivityExecution)
          only called when a new variable is created on this variable scope.
 void createVariablesLocal(Map<String,? extends Object> variables)
           
protected  void deleteVariableInstanceForExplicitUserCall(VariableInstanceEntity variableInstance, ExecutionEntity sourceActivityExecution)
           
 void deleteVariablesInstanceForLeavingScope()
           
protected  void ensureVariableInstancesInitialized()
           
 ELContext getCachedElContext()
           
 String getId()
           
protected abstract  VariableScopeImpl getParentVariableScope()
           
protected  ExecutionEntity getSourceActivityExecution()
           
 Object getVariable(String variableName)
           
 Object getVariableLocal(String variableName)
           
 Set<String> getVariableNames()
           
 Set<String> getVariableNamesLocal()
           
 Map<String,Object> getVariables()
           
 Map<String,Object> getVariablesLocal()
           
 boolean hasVariable(String variableName)
           
 boolean hasVariableLocal(String variableName)
           
 boolean hasVariables()
           
 boolean hasVariablesLocal()
           
protected abstract  void initializeVariableInstanceBackPointer(VariableInstanceEntity variableInstance)
           
protected  boolean isActivityIdUsedForDetails()
          Execution variable updates have activity instance ids, but historic task variable updates don't.
protected abstract  List<VariableInstanceEntity> loadVariableInstances()
           
 void removeVariable(String variableName)
          Removes the variable and creates a new HistoricVariableUpdateEntity.
protected  void removeVariable(String variableName, ExecutionEntity sourceActivityExecution)
           
 void removeVariableLocal(String variableName)
          Removes the local variable and creates a new HistoricVariableUpdateEntity.
protected  void removeVariableLocal(String variableName, ExecutionEntity 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 setId(String id)
           
 void setVariable(String variableName, Object value)
           
protected  void setVariable(String variableName, Object value, ExecutionEntity sourceActivityExecution)
           
 Object setVariableLocal(String variableName, Object value)
           
 Object setVariableLocal(String variableName, Object value, ExecutionEntity sourceActivityExecution)
           
 void setVariables(Map<String,? extends Object> variables)
           
 void setVariablesLocal(Map<String,? extends Object> variables)
           
protected  void updateVariableInstance(VariableInstanceEntity variableInstance, Object value, ExecutionEntity sourceActivityExecution)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

variableInstances

protected Map<String,VariableInstanceEntity> variableInstances

cachedElContext

protected ELContext cachedElContext

id

protected String id
构造方法详细信息

VariableScopeImpl

public VariableScopeImpl()
方法详细信息

loadVariableInstances

protected abstract List<VariableInstanceEntity> loadVariableInstances()

getParentVariableScope

protected abstract VariableScopeImpl getParentVariableScope()

initializeVariableInstanceBackPointer

protected abstract void initializeVariableInstanceBackPointer(VariableInstanceEntity variableInstance)

ensureVariableInstancesInitialized

protected void ensureVariableInstancesInitialized()

getVariables

public Map<String,Object> getVariables()
指定者:
接口 VariableScope 中的 getVariables

collectVariables

protected Map<String,Object> collectVariables(HashMap<String,Object> variables)

getVariable

public Object getVariable(String variableName)
指定者:
接口 VariableScope 中的 getVariable

getVariableLocal

public Object getVariableLocal(String variableName)
指定者:
接口 VariableScope 中的 getVariableLocal

hasVariables

public boolean hasVariables()
指定者:
接口 VariableScope 中的 hasVariables

hasVariablesLocal

public boolean hasVariablesLocal()
指定者:
接口 VariableScope 中的 hasVariablesLocal

hasVariable

public boolean hasVariable(String variableName)
指定者:
接口 VariableScope 中的 hasVariable

hasVariableLocal

public boolean hasVariableLocal(String variableName)
指定者:
接口 VariableScope 中的 hasVariableLocal

collectVariableNames

protected Set<String> collectVariableNames(Set<String> variableNames)

getVariableNames

public Set<String> getVariableNames()
指定者:
接口 VariableScope 中的 getVariableNames

getVariablesLocal

public Map<String,Object> getVariablesLocal()
指定者:
接口 VariableScope 中的 getVariablesLocal

getVariableNamesLocal

public Set<String> getVariableNamesLocal()
指定者:
接口 VariableScope 中的 getVariableNamesLocal

createVariablesLocal

public void createVariablesLocal(Map<String,? extends Object> variables)

setVariables

public void setVariables(Map<String,? extends Object> variables)
指定者:
接口 VariableScope 中的 setVariables

setVariablesLocal

public void setVariablesLocal(Map<String,? extends Object> variables)
指定者:
接口 VariableScope 中的 setVariablesLocal

removeVariables

public void removeVariables()
从接口 VariableScope 复制的描述
Removes the (local) variables and creates a new HistoricVariableUpdateEntity for each of them.

指定者:
接口 VariableScope 中的 removeVariables

removeVariablesLocal

public void removeVariablesLocal()
从接口 VariableScope 复制的描述
Removes the (local) variables and creates a new HistoricVariableUpdateEntity for each of them.

指定者:
接口 VariableScope 中的 removeVariablesLocal

deleteVariablesInstanceForLeavingScope

public void deleteVariablesInstanceForLeavingScope()

removeVariables

public void removeVariables(Collection<String> variableNames)
从接口 VariableScope 复制的描述
Removes the variables and creates a new HistoricVariableUpdateEntity for each of them.

指定者:
接口 VariableScope 中的 removeVariables

removeVariablesLocal

public void removeVariablesLocal(Collection<String> variableNames)
从接口 VariableScope 复制的描述
Removes the local variables and creates a new HistoricVariableUpdateEntity for each of them.

指定者:
接口 VariableScope 中的 removeVariablesLocal

setVariable

public void setVariable(String variableName,
                        Object value)
指定者:
接口 VariableScope 中的 setVariable

setVariable

protected void setVariable(String variableName,
                           Object value,
                           ExecutionEntity sourceActivityExecution)

setVariableLocal

public Object setVariableLocal(String variableName,
                               Object value)
指定者:
接口 VariableScope 中的 setVariableLocal

setVariableLocal

public Object setVariableLocal(String variableName,
                               Object value,
                               ExecutionEntity sourceActivityExecution)

createVariableLocal

public void createVariableLocal(String variableName,
                                Object value)
指定者:
接口 VariableScope 中的 createVariableLocal

createVariableLocal

protected void createVariableLocal(String variableName,
                                   Object value,
                                   ExecutionEntity sourceActivityExecution)
only called when a new variable is created on this variable scope. This method is also responsible for propagating the creation of this variable to the history.


removeVariable

public void removeVariable(String variableName)
从接口 VariableScope 复制的描述
Removes the variable and creates a new HistoricVariableUpdateEntity.

指定者:
接口 VariableScope 中的 removeVariable

removeVariable

protected void removeVariable(String variableName,
                              ExecutionEntity sourceActivityExecution)

removeVariableLocal

public void removeVariableLocal(String variableName)
从接口 VariableScope 复制的描述
Removes the local variable and creates a new HistoricVariableUpdateEntity.

指定者:
接口 VariableScope 中的 removeVariableLocal

getSourceActivityExecution

protected ExecutionEntity getSourceActivityExecution()

removeVariableLocal

protected void removeVariableLocal(String variableName,
                                   ExecutionEntity sourceActivityExecution)

deleteVariableInstanceForExplicitUserCall

protected void deleteVariableInstanceForExplicitUserCall(VariableInstanceEntity variableInstance,
                                                         ExecutionEntity sourceActivityExecution)

updateVariableInstance

protected void updateVariableInstance(VariableInstanceEntity variableInstance,
                                      Object value,
                                      ExecutionEntity sourceActivityExecution)

createVariableInstance

protected VariableInstanceEntity createVariableInstance(String variableName,
                                                        Object value,
                                                        ExecutionEntity sourceActivityExecution)

isActivityIdUsedForDetails

protected boolean isActivityIdUsedForDetails()
Execution variable updates have activity instance ids, but historic task variable updates don't.


getCachedElContext

public ELContext getCachedElContext()

setCachedElContext

public void setCachedElContext(ELContext cachedElContext)

getId

public String getId()

setId

public void setId(String id)


Copyright © 2013 Alfresco. All rights reserved.