Пример #1
0
  public String getNameByProcessId(String id) {
    for (ProcessInstance processInstance : processList) {
      if (processInstance.getId().equals(id)) {
        return processInstance.getName();
      }
    }

    return null;
  }
Пример #2
0
  public String getIdByProcessName(String name) {
    for (ProcessInstance processInstance : processList) {
      if (processInstance.getName().equals(name)) {
        return processInstance.getId();
      }
    }

    return null;
  }