!1183 Simple设计器-路由分支

Merge pull request !1183 from Lesan/feature/bpm-路由分支
This commit is contained in:
芋道源码
2025-01-07 04:53:55 +00:00
committed by Gitee
7 changed files with 105 additions and 28 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

@@ -33,6 +33,7 @@ public enum BpmSimpleModelNodeType implements IntArrayValuable {
CONDITION_BRANCH_NODE(51, "条件分支", "exclusiveGateway"),
PARALLEL_BRANCH_NODE(52, "并行分支", "parallelGateway"),
INCLUSIVE_BRANCH_NODE(53, "包容分支", "inclusiveGateway"),
ROUTE_BRANCH_NODE(54, "路由分支", "exclusiveGateway")
;
public static final int[] ARRAYS = Arrays.stream(values()).mapToInt(BpmSimpleModelNodeType::getType).toArray();
@@ -49,7 +50,8 @@ public enum BpmSimpleModelNodeType implements IntArrayValuable {
public static boolean isBranchNode(Integer type) {
return Objects.equals(CONDITION_BRANCH_NODE.getType(), type)
|| Objects.equals(PARALLEL_BRANCH_NODE.getType(), type)
|| Objects.equals(INCLUSIVE_BRANCH_NODE.getType(), type);
|| Objects.equals(INCLUSIVE_BRANCH_NODE.getType(), type)
|| Objects.equals(ROUTE_BRANCH_NODE.getType(), type);
}
public static BpmSimpleModelNodeType valueOf(Integer type) {