fix: 处理延迟器命名
This commit is contained in:
parent
6a7e7e3e44
commit
8b91b471d5
|
@ -14,7 +14,7 @@ import lombok.Getter;
|
||||||
public enum BpmBoundaryEventType {
|
public enum BpmBoundaryEventType {
|
||||||
|
|
||||||
USER_TASK_TIMEOUT(1, "用户任务超时"),
|
USER_TASK_TIMEOUT(1, "用户任务超时"),
|
||||||
DELAY_TIMER_TIMEOUT(2, "触发器超时");
|
DELAY_TIMER_TIMEOUT(2, "延迟器超时");
|
||||||
|
|
||||||
private final Integer type;
|
private final Integer type;
|
||||||
private final String name;
|
private final String name;
|
||||||
|
|
|
@ -7,7 +7,7 @@ import lombok.Getter;
|
||||||
import java.util.Arrays;
|
import java.util.Arrays;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* BPM 延时器类型枚举
|
* BPM 延迟器类型枚举
|
||||||
*
|
*
|
||||||
* @author Lesan
|
* @author Lesan
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -106,7 +106,7 @@ public class BpmTaskEventListener extends AbstractFlowableEngineEventListener {
|
||||||
BpmnModelConstants.USER_TASK_TIMEOUT_HANDLER_TYPE);
|
BpmnModelConstants.USER_TASK_TIMEOUT_HANDLER_TYPE);
|
||||||
String taskKey = boundaryEvent.getAttachedToRefId();
|
String taskKey = boundaryEvent.getAttachedToRefId();
|
||||||
taskService.processTaskTimeout(event.getProcessInstanceId(), taskKey, NumberUtils.parseInt(timeoutHandlerType));
|
taskService.processTaskTimeout(event.getProcessInstanceId(), taskKey, NumberUtils.parseInt(timeoutHandlerType));
|
||||||
// 2.2 触发器超时处理
|
// 2.2 延迟器超时处理
|
||||||
} else if (ObjectUtil.equal(bpmTimerBoundaryEventType, BpmBoundaryEventType.DELAY_TIMER_TIMEOUT)) {
|
} else if (ObjectUtil.equal(bpmTimerBoundaryEventType, BpmBoundaryEventType.DELAY_TIMER_TIMEOUT)) {
|
||||||
String taskKey = boundaryEvent.getAttachedToRefId();
|
String taskKey = boundaryEvent.getAttachedToRefId();
|
||||||
taskService.processDelayTimerTimeout(event.getProcessInstanceId(), taskKey);
|
taskService.processDelayTimerTimeout(event.getProcessInstanceId(), taskKey);
|
||||||
|
|
|
@ -276,7 +276,7 @@ public interface BpmTaskService {
|
||||||
void processTaskTimeout(String processInstanceId, String taskDefineKey, Integer handlerType);
|
void processTaskTimeout(String processInstanceId, String taskDefineKey, Integer handlerType);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 处理 延时器 超时事件
|
* 处理 延迟器 超时事件
|
||||||
*
|
*
|
||||||
* @param processInstanceId 流程示例编号
|
* @param processInstanceId 流程示例编号
|
||||||
* @param taskDefineKey 任务 Key
|
* @param taskDefineKey 任务 Key
|
||||||
|
|
Loading…
Reference in New Issue