Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

BpmnModel#addEscalation method implement error

Aperta
#4,306 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 1 giorno

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
55/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
java

Direzione di ricerca

Start by locating BpmnModel#addEscalation and the escalationMap lookups shown in the issue. Trace whether callers and stored keys use escalation IDs or codes, then check the related tests. Done means both add methods store entries under the same identifier that containsEscalationRef and getEscalation expect, with tests covering the behavior.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Describe the bug
BpmnModel#addEscalation method implement error.

Expected behavior
Repair code.

Code

code in branch main

public void addEscalation(String escalationRef, String escalationCode, String name) {
    if (StringUtils.isNotEmpty(escalationRef)) {
        escalationMap.put(escalationRef, new Escalation(escalationRef, name, escalationCode));
    }
}

public void addEscalation(Escalation escalation) {
    if (StringUtils.isNotEmpty(escalation.getEscalationCode())) {
        escalationMap.put(escalation.getEscalationCode(), escalation);
    }
}

public boolean containsEscalationRef(String escalationRef) {
    return escalationMap.containsKey(escalationRef);
}

public Escalation getEscalation(String escalationRef) {
    return escalationMap.get(escalationRef);
}

At first method, escalationMap.put used key is id in fact, second method, escalationMap.put used key is code in fact.
containsEscalationRef and getEscalation method param is code when call these method.

Additional context
main branch.

Lingua principale
Java
Stelle
9.6k
Fork
2.9k
Merge medio
1g 3h
PR unite (30g)
6

Preparare l'ambiente

  • Nessun Dockerfile né file Docker Compose
  • Ha un modello di pull request
  • Nessuna guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di flowable/flowable-engine

Tutte le issue di flowable/flowable-engine

Issue simili

Altre issue su Java

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.