Map<String,FlowNode> flowNodes=CoreUtil.getBeforeFlowNode(token.getFlowNode());
//获取这个令牌自己和爸爸相关的所有任务
TaskQuery taskQuery=new TaskQueryImpl(Context.getCommandContext());
List<TaskInstance> taskInstanceQueryToList = new ArrayList<TaskInstance>();
taskQuery.processInstanceId(processInstanceId);
taskQuery.taskIsEnd().orderByEndTime().asc().orderByTaskCreateTime().asc();
taskInstanceQueryToList = taskQuery.list();
List<String> processInstanceIdList=new ArrayList<String>();
processInstanceIdList.add(token.getProcessInstanceId());