Skip to content

Commit 2c09484

Browse files
committed
update 2.9.21
1 parent 31a88d3 commit 2c09484

File tree

8 files changed

+33
-11
lines changed

8 files changed

+33
-11
lines changed

Diff for: pom.xml

+1-1
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.20</version>
18+
<version>2.9.21</version>
1919

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

Diff for: springboot-starter-data-authorization/pom.xml

+1-1
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.20</version>
9+
<version>2.9.21</version>
1010
</parent>
1111

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

Diff for: springboot-starter-data-fast/pom.xml

+1-1
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.20</version>
8+
<version>2.9.21</version>
99
</parent>
1010
<modelVersion>4.0.0</modelVersion>
1111

Diff for: springboot-starter-flow/pom.xml

+1-1
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.20</version>
9+
<version>2.9.21</version>
1010
</parent>
1111

1212
<name>springboot-starter-flow</name>

Diff for: springboot-starter-flow/src/main/java/com/codingapi/springboot/flow/content/FlowSession.java

+26-4
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,13 @@ public MessageResult rejectFlow() {
184184
}
185185

186186
/**
187-
* 是否为驳回状态
188-
*
189-
* @return 是否为驳回状态
187+
* 上级节点的状态是驳回状态
188+
* @return 上级节点的状态是驳回状态
190189
*/
191-
public boolean isRejectState() {
190+
public boolean backStateIsReject() {
191+
if (flowRecord == null) {
192+
return false;
193+
}
192194
long preId = flowRecord.getPreId();
193195
if (preId == 0) {
194196
return false;
@@ -201,6 +203,26 @@ public boolean isRejectState() {
201203
return false;
202204
}
203205

206+
/**
207+
* 上级节点的状态是驳回状态
208+
*
209+
* @see #backStateIsReject()
210+
*/
211+
@Deprecated
212+
public boolean isRejectState() {
213+
return this.backStateIsReject();
214+
}
215+
216+
/**
217+
* 当前节点的状态是驳回状态
218+
*/
219+
public boolean currentStateIsReject() {
220+
if (flowRecord != null) {
221+
return flowRecord.getFlowSourceDirection() == FlowSourceDirection.REJECT;
222+
}
223+
return false;
224+
}
225+
204226

205227
/**
206228
* 预提交流程

Diff for: springboot-starter-security/pom.xml

+1-1
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.20</version>
9+
<version>2.9.21</version>
1010
</parent>
1111

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

Diff for: springboot-starter/pom.xml

+1-1
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.20</version>
8+
<version>2.9.21</version>
99
</parent>
1010
<artifactId>springboot-starter</artifactId>
1111

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
------------------------------------------------------
2-
CodingApi SpringBoot-Starter 2.9.20
2+
CodingApi SpringBoot-Starter 2.9.21
33
springboot version (${spring-boot.version})
44
------------------------------------------------------

0 commit comments

Comments
 (0)