@Override public void setVariableLocal(String variableName, Object value) { ExecutionEntity execution = getExecutionFromContext(); if(execution != null) { execution.setVariableLocal(variableName, value); execution.getVariableLocal(variableName); } else { getScopedAssociation().setVariableLocal(variableName, value); } }
public Object execute(CommandContext commandContext) { ensureNotNull("executionId", executionId); ensureNotNull("variableName", variableName); ExecutionEntity execution = commandContext .getExecutionManager() .findExecutionById(executionId); ensureNotNull("execution " + executionId + " doesn't exist", "execution", execution); checkGetExecutionVariable(execution, commandContext); Object value; if (isLocal) { value = execution.getVariableLocal(variableName, true); } else { value = execution.getVariable(variableName, true); } return value; }
public Object execute(CommandContext commandContext) { ensureNotNull("executionId", executionId); ensureNotNull("variableName", variableName); ExecutionEntity execution = commandContext .getExecutionManager() .findExecutionById(executionId); ensureNotNull("execution " + executionId + " doesn't exist", "execution", execution); checkGetExecutionVariable(execution, commandContext); Object value; if (isLocal) { value = execution.getVariableLocal(variableName, true); } else { value = execution.getVariable(variableName, true); } return value; }
@Override public void setVariableLocal(String variableName, Object value) { ExecutionEntity execution = getExecutionFromContext(); if(execution != null) { execution.setVariableLocal(variableName, value); execution.getVariableLocal(variableName); } else { getScopedAssociation().setVariableLocal(variableName, value); } }
public Object execute(CommandContext commandContext) { ensureNotNull("executionId", executionId); ensureNotNull("variableName", variableName); ExecutionEntity execution = commandContext .getExecutionManager() .findExecutionById(executionId); ensureNotNull("execution " + executionId + " doesn't exist", "execution", execution); checkGetExecutionVariable(execution, commandContext); Object value; if (isLocal) { value = execution.getVariableLocal(variableName, true); } else { value = execution.getVariable(variableName, true); } return value; }