List<TaskInstance> taskInstancesNotEndA=taskService.createTaskQuery().processInstanceId(processInstanceId).taskAssignee(userId).taskNotEnd().list();
List<TaskInstance> taskInstancesNotEndC=taskService.createTaskQuery().processInstanceId(processInstanceId).taskCandidateUser(userId).taskNotEnd().list();
Map<String, String> notEndTask=new HashMap<String, String>();
//独占未完成
for (TaskInstance taskInstance : taskInstancesNotEndA) {
List<TaskCommandInst> taskCommandInsts=taskService.GetTaskCommandByTaskInstance(taskInstance,true);
for (TaskCommandInst taskCommandInst : taskCommandInsts) {
Map<String, Object> mapTemp=taskCommandInst.getPersistentState();
if( mapTemp.get("type").equals("reminders")||mapTemp.get("type").equals("recover")||mapTemp.get("type").equals("processStatus")){
mapTemp.put("taskId", taskInstance.getId());