Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

BpmnModel#addEscalation method implement error

Đang mở
#4,306 2 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

@Rohith1551 đang làm issue này rồi.

Từ ngày 13/10/2026.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
55/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
java
Lĩnh vực
backend-api-design

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Java
Star
9.6k
Fork
2.9k
Merge trung bình
1 ngày 3 giờ
Pull request đã merge (30 ngày)
6

Chuẩn bị môi trường

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của flowable/flowable-engine

Tất cả issue của flowable/flowable-engine

Issue tương tự

Thêm issue về Java

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.