Class SetWorkObjectVariableCmd

java.lang.Object
com.flowable.workobject.engine.impl.cmd.WorkObjectVariableCmd
com.flowable.workobject.engine.impl.cmd.SetWorkObjectVariableCmd
All Implemented Interfaces:
java.io.Serializable, org.flowable.common.engine.impl.interceptor.Command<java.lang.Void>

public class SetWorkObjectVariableCmd
extends WorkObjectVariableCmd
Updates/creates workObject variable
See Also:
Serialized Form
  • Field Summary

    Fields 
    Modifier and Type Field Description
    protected java.lang.Object value  

    Fields inherited from class com.flowable.workobject.engine.impl.cmd.WorkObjectVariableCmd

    legacyVariableHit, name, workObjectId
  • Constructor Summary

    Constructors 
    Constructor Description
    SetWorkObjectVariableCmd​(java.lang.String workObjectId, java.lang.String name, java.lang.Object value)  
  • Method Summary

    Modifier and Type Method Description
    protected org.flowable.variable.service.impl.persistence.entity.VariableInstanceEntity createVariable​(java.lang.String scopeId, java.lang.String scopeType, java.lang.String variableName, java.lang.Object newVariableValue, org.flowable.variable.api.types.VariableType newVariableValueType)  
    java.lang.Void execute​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)  
    protected void recordVariableCreate​(boolean isPropagateToHistoricVariable, org.flowable.variable.service.impl.persistence.entity.VariableInstanceEntity variableInstance)  
    protected void recordVariableUpdate​(boolean isPropagateToHistoricVariable, org.flowable.variable.service.impl.persistence.entity.VariableInstanceEntity variableInstance)  
    protected void setVariable​(java.lang.String scopeId, java.lang.String scopeType, java.lang.String variableName, java.lang.Object newVariableValue, boolean isPropagateToHistoricVariable)  
    protected void updateVariable​(org.flowable.variable.service.impl.persistence.entity.VariableInstanceEntity variableInstance, java.lang.Object newVariableValue, org.flowable.variable.api.types.VariableType newVariableValueType)  

    Methods inherited from class com.flowable.workobject.engine.impl.cmd.WorkObjectVariableCmd

    getWorkObjectWithConvertedVariables

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • value

      protected final java.lang.Object value
  • Constructor Details

    • SetWorkObjectVariableCmd

      public SetWorkObjectVariableCmd​(java.lang.String workObjectId, java.lang.String name, java.lang.Object value)
  • Method Details

    • execute

      public java.lang.Void execute​(org.flowable.common.engine.impl.interceptor.CommandContext commandContext)
      Specified by:
      execute in interface org.flowable.common.engine.impl.interceptor.Command<java.lang.Void>
      Specified by:
      execute in class WorkObjectVariableCmd
    • setVariable

      protected void setVariable​(java.lang.String scopeId, java.lang.String scopeType, java.lang.String variableName, java.lang.Object newVariableValue, boolean isPropagateToHistoricVariable)
    • recordVariableUpdate

      protected void recordVariableUpdate​(boolean isPropagateToHistoricVariable, org.flowable.variable.service.impl.persistence.entity.VariableInstanceEntity variableInstance)
    • recordVariableCreate

      protected void recordVariableCreate​(boolean isPropagateToHistoricVariable, org.flowable.variable.service.impl.persistence.entity.VariableInstanceEntity variableInstance)
    • updateVariable

      protected void updateVariable​(org.flowable.variable.service.impl.persistence.entity.VariableInstanceEntity variableInstance, java.lang.Object newVariableValue, org.flowable.variable.api.types.VariableType newVariableValueType)
    • createVariable

      protected org.flowable.variable.service.impl.persistence.entity.VariableInstanceEntity createVariable​(java.lang.String scopeId, java.lang.String scopeType, java.lang.String variableName, java.lang.Object newVariableValue, org.flowable.variable.api.types.VariableType newVariableValueType)