Ejemplo n.º 1
0
  public String getNameByProcessId(String id) {
    for (ProcessInstance processInstance : processList) {
      if (processInstance.getId().equals(id)) {
        return processInstance.getName();
      }
    }

    return null;
  }
Ejemplo n.º 2
0
  public String getIdByProcessName(String name) {
    for (ProcessInstance processInstance : processList) {
      if (processInstance.getName().equals(name)) {
        return processInstance.getId();
      }
    }

    return null;
  }