public String getNameByProcessId(String id) { for (ProcessInstance processInstance : processList) { if (processInstance.getId().equals(id)) { return processInstance.getName(); } } return null; }
public String getIdByProcessName(String name) { for (ProcessInstance processInstance : processList) { if (processInstance.getName().equals(name)) { return processInstance.getId(); } } return null; }