fix: 【BPM 工作流】定时边界事件固定日期和固定时长参数传反问题

This commit is contained in:
dylannier 2025-09-10 11:15:43 +08:00
parent a378e9e4dc
commit 4eae5bd09b

View File

@ -736,11 +736,13 @@ public class SimpleModelUtils {
if (node.getDelaySetting() != null) { if (node.getDelaySetting() != null) {
BoundaryEvent boundaryEvent = null; BoundaryEvent boundaryEvent = null;
if (node.getDelaySetting().getDelayType().equals(BpmDelayTimerTypeEnum.FIXED_DATE_TIME.getType())) { if (node.getDelaySetting().getDelayType().equals(BpmDelayTimerTypeEnum.FIXED_DATE_TIME.getType())) {
boundaryEvent = buildTimeoutBoundaryEvent(receiveTask, BpmBoundaryEventTypeEnum.DELAY_TIMER_TIMEOUT.getType(), // 固定日期
node.getDelaySetting().getDelayTime(), null, null);
} else if (node.getDelaySetting().getDelayType().equals(BpmDelayTimerTypeEnum.FIXED_TIME_DURATION.getType())) {
boundaryEvent = buildTimeoutBoundaryEvent(receiveTask, BpmBoundaryEventTypeEnum.DELAY_TIMER_TIMEOUT.getType(), boundaryEvent = buildTimeoutBoundaryEvent(receiveTask, BpmBoundaryEventTypeEnum.DELAY_TIMER_TIMEOUT.getType(),
null, null, node.getDelaySetting().getDelayTime()); null, null, node.getDelaySetting().getDelayTime());
} else if (node.getDelaySetting().getDelayType().equals(BpmDelayTimerTypeEnum.FIXED_TIME_DURATION.getType())) {
// 固定时长
boundaryEvent = buildTimeoutBoundaryEvent(receiveTask, BpmBoundaryEventTypeEnum.DELAY_TIMER_TIMEOUT.getType(),
node.getDelaySetting().getDelayTime(), null, null);
} else { } else {
throw new UnsupportedOperationException("不支持的延迟类型:" + node.getDelaySetting()); throw new UnsupportedOperationException("不支持的延迟类型:" + node.getDelaySetting());
} }