Ejemplo n.º 1
0
            public Void execute(CommandContext commandContext)
            {
                ExecutionEntity execution = commandContext.ExecutionManager.findExecutionById(processInstanceId);

                VariableInstanceEntity         varInstance = (VariableInstanceEntity)execution.getVariableInstance(outerInstance.VARIABLE_NAME);
                HistoricVariableInstanceEntity historicVariableInstance = commandContext.HistoricVariableInstanceManager.findHistoricVariableInstanceByVariableInstanceId(varInstance.Id);

                historicByteArrayId[0] = historicVariableInstance.ByteArrayValueId;

                return(null);
            }
Ejemplo n.º 2
0
        public virtual VariableInstanceEntity buildEntity()
        {
            VariableInstanceEntity mockVariable = mock(typeof(VariableInstanceEntity));

            if (!string.ReferenceEquals(taskId_Renamed, null))
            {
                when(mockVariable.VariableScopeId).thenReturn(taskId_Renamed);
            }
            else if (!string.ReferenceEquals(executionId_Renamed, null))
            {
                when(mockVariable.VariableScopeId).thenReturn(executionId_Renamed);
            }
            else
            {
                when(mockVariable.VariableScopeId).thenReturn(caseExecutionId_Renamed);
            }
            return(build(mockVariable));
        }
Ejemplo n.º 3
0
            public Void execute(CommandContext commandContext)
            {
                //create a variable
                VariableInstanceEntity variable = VariableInstanceEntity.createAndInsert("aVariable", Variables.byteArrayValue(new sbyte[0]));
                string byteArrayId = variable.ByteArrayValueId;

                //delete the variable
                variable.delete();

                //check if the variable is deleted transient
                //-> no insert and delete stmt will be flushed
                DbEntityManager dbEntityManager = commandContext.DbEntityManager;
                CachedDbEntity  cachedEntity    = dbEntityManager.DbEntityCache.getCachedEntity(typeof(ByteArrayEntity), byteArrayId);

                DbEntityState entityState = cachedEntity.EntityState;

                assertEquals(DbEntityState.DELETED_TRANSIENT, entityState);

                return(null);
            }
Ejemplo n.º 4
0
 public MigratingVariableInstance(VariableInstanceEntity variable, bool isConcurrentLocalInParentScope)
 {
     this.variable = variable;
     this.isConcurrentLocalInParentScope = isConcurrentLocalInParentScope;
 }
Ejemplo n.º 5
0
 public HistoryEventCreatorAnonymousInnerClass2(VariableInstanceHistoryListener outerInstance, org.camunda.bpm.engine.impl.persistence.entity.VariableInstanceEntity variableInstance, AbstractVariableScope sourceScope)
 {
     this.outerInstance    = outerInstance;
     this.variableInstance = variableInstance;
     this.sourceScope      = sourceScope;
 }