Skip to content

Commit b89edde

Browse files
committed
update 2.9.27
1 parent 26b650c commit b89edde

File tree

9 files changed

+33
-13
lines changed

9 files changed

+33
-13
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
<groupId>com.codingapi.springboot</groupId>
1717
<artifactId>springboot-parent</artifactId>
18-
<version>2.9.26</version>
18+
<version>2.9.27</version>
1919

2020
<url>https://github.com/codingapi/springboot-framewrok</url>
2121
<name>springboot-parent</name>

springboot-starter-data-authorization/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<artifactId>springboot-parent</artifactId>
88
<groupId>com.codingapi.springboot</groupId>
9-
<version>2.9.26</version>
9+
<version>2.9.27</version>
1010
</parent>
1111

1212
<artifactId>springboot-starter-data-authorization</artifactId>

springboot-starter-data-fast/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<artifactId>springboot-parent</artifactId>
77
<groupId>com.codingapi.springboot</groupId>
8-
<version>2.9.26</version>
8+
<version>2.9.27</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

springboot-starter-flow/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<artifactId>springboot-parent</artifactId>
88
<groupId>com.codingapi.springboot</groupId>
9-
<version>2.9.26</version>
9+
<version>2.9.27</version>
1010
</parent>
1111

1212
<name>springboot-starter-flow</name>
Lines changed: 24 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
package com.codingapi.springboot.flow.pojo;
22

33
import com.codingapi.springboot.flow.domain.FlowNode;
4+
import com.codingapi.springboot.flow.em.NodeType;
5+
import com.codingapi.springboot.flow.user.IFlowOperator;
46
import lombok.Getter;
57

68
import java.util.ArrayList;
@@ -9,20 +11,38 @@
911
@Getter
1012
public class FlowStepResult {
1113

12-
private final List<FlowNode> flowNodes;
14+
private final List<FlowStepNode> flowNodes;
1315

1416
public FlowStepResult() {
1517
this.flowNodes = new ArrayList<>();
1618
}
1719

18-
public void addFlowNode(FlowNode flowNode) {
19-
this.flowNodes.add(flowNode);
20+
public void addFlowNode(FlowNode flowNode,List<? extends IFlowOperator> operators) {
21+
this.flowNodes.add(new FlowStepNode(flowNode.getId(), flowNode.getCode(),flowNode.getName(),flowNode.getType(),operators));
2022
}
2123

2224

2325
public void print(){
24-
for (FlowNode flowNode : flowNodes) {
26+
for (FlowStepNode flowNode : flowNodes) {
2527
System.out.println("flowNode = " + flowNode.getName());
2628
}
2729
}
30+
31+
32+
@Getter
33+
public static class FlowStepNode{
34+
private final String id;
35+
private final String code;
36+
private final String name;
37+
private final NodeType type;
38+
private final List<? extends IFlowOperator> operators;
39+
40+
public FlowStepNode(String id, String code, String name, NodeType type,List<? extends IFlowOperator> operators) {
41+
this.id = id;
42+
this.code = code;
43+
this.name = name;
44+
this.type = type;
45+
this.operators = operators;
46+
}
47+
}
2848
}

springboot-starter-flow/src/main/java/com/codingapi/springboot/flow/service/impl/FlowStepService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@ public FlowStepResult getFlowStep() {
7070
flowNodeService.setNextNode(start);
7171

7272
this.flowNode = start;
73-
flowStepResult.addFlowNode(this.flowNode);
73+
flowStepResult.addFlowNode(this.flowNode, this.flowNodeService.loadNextNodeOperators());
7474

7575
do {
7676
flowNodeService.loadNextPassNode(this.flowNode);
7777
this.flowNode = flowNodeService.getNextNode();
78-
flowStepResult.addFlowNode(this.flowNode);
78+
flowStepResult.addFlowNode(this.flowNode, this.flowNodeService.loadNextNodeOperators());
7979
} while (!flowNode.isOverNode());
8080

8181
return flowStepResult;

springboot-starter-security/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<parent>
77
<artifactId>springboot-parent</artifactId>
88
<groupId>com.codingapi.springboot</groupId>
9-
<version>2.9.26</version>
9+
<version>2.9.27</version>
1010
</parent>
1111

1212
<artifactId>springboot-starter-security</artifactId>

springboot-starter/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<parent>
66
<groupId>com.codingapi.springboot</groupId>
77
<artifactId>springboot-parent</artifactId>
8-
<version>2.9.26</version>
8+
<version>2.9.27</version>
99
</parent>
1010
<artifactId>springboot-starter</artifactId>
1111

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
------------------------------------------------------
2-
CodingApi SpringBoot-Starter 2.9.26
2+
CodingApi SpringBoot-Starter 2.9.27
33
springboot version (${spring-boot.version})
44
------------------------------------------------------

0 commit comments

Comments
 (0)