fix: 处理延迟器命名

This commit is contained in:
Lesan 2025-01-06 08:42:03 +08:00
parent 6a7e7e3e44
commit 8b91b471d5
4 changed files with 4 additions and 4 deletions

View File

@ -14,7 +14,7 @@ import lombok.Getter;
public enum BpmBoundaryEventType {
USER_TASK_TIMEOUT(1, "用户任务超时"),
DELAY_TIMER_TIMEOUT(2, "触发器超时");
DELAY_TIMER_TIMEOUT(2, "延迟器超时");
private final Integer type;
private final String name;

View File

@ -7,7 +7,7 @@ import lombok.Getter;
import java.util.Arrays;
/**
* BPM 器类型枚举
* BPM 器类型枚举
*
* @author Lesan
*/

View File

@ -106,7 +106,7 @@ public class BpmTaskEventListener extends AbstractFlowableEngineEventListener {
BpmnModelConstants.USER_TASK_TIMEOUT_HANDLER_TYPE);
String taskKey = boundaryEvent.getAttachedToRefId();
taskService.processTaskTimeout(event.getProcessInstanceId(), taskKey, NumberUtils.parseInt(timeoutHandlerType));
// 2.2 触发器超时处理
// 2.2 延迟器超时处理
} else if (ObjectUtil.equal(bpmTimerBoundaryEventType, BpmBoundaryEventType.DELAY_TIMER_TIMEOUT)) {
String taskKey = boundaryEvent.getAttachedToRefId();
taskService.processDelayTimerTimeout(event.getProcessInstanceId(), taskKey);

View File

@ -276,7 +276,7 @@ public interface BpmTaskService {
void processTaskTimeout(String processInstanceId, String taskDefineKey, Integer handlerType);
/**
* 处理 超时事件
* 处理 超时事件
*
* @param processInstanceId 流程示例编号
* @param taskDefineKey 任务 Key