String processInstanceId=dataVariableEntity.getProcessInstanceId();
List<String> keyList=new ArrayList<String>();
keyList.add(variableKey);
QueryVariablesCommand queryVariablesCommand=new QueryVariablesCommand();
queryVariablesCommand.setVariableNames(keyList);
queryVariablesCommand.setNodeId(nodeId);
queryVariablesCommand.setTaskInstanceId(taskInstanceId);
queryVariablesCommand.setTokenId(tokenId);
queryVariablesCommand.setProcessInstanceId(processInstanceId);
// 执行查询流程是Sql语句,判断流程实例是否存在于数据库中.
//List<DataVariableEntity> dataVariableEntities=selectVariableByQuery(queryVariablesCommand);
if(dataVariableEntity.isAdd()){