File tree 8 files changed +33
-11
lines changed
src/main/resources/META-INF
springboot-starter-data-authorization
springboot-starter-data-fast
src/main/java/com/codingapi/springboot/flow/content
springboot-starter-security
8 files changed +33
-11
lines changed Original file line number Diff line number Diff line change 15
15
16
16
<groupId >com.codingapi.springboot</groupId >
17
17
<artifactId >springboot-parent</artifactId >
18
- <version >2.9.20 </version >
18
+ <version >2.9.21 </version >
19
19
20
20
<url >https://github.com/codingapi/springboot-framewrok</url >
21
21
<name >springboot-parent</name >
Original file line number Diff line number Diff line change 6
6
<parent >
7
7
<artifactId >springboot-parent</artifactId >
8
8
<groupId >com.codingapi.springboot</groupId >
9
- <version >2.9.20 </version >
9
+ <version >2.9.21 </version >
10
10
</parent >
11
11
12
12
<artifactId >springboot-starter-data-authorization</artifactId >
Original file line number Diff line number Diff line change 5
5
<parent >
6
6
<artifactId >springboot-parent</artifactId >
7
7
<groupId >com.codingapi.springboot</groupId >
8
- <version >2.9.20 </version >
8
+ <version >2.9.21 </version >
9
9
</parent >
10
10
<modelVersion >4.0.0</modelVersion >
11
11
Original file line number Diff line number Diff line change 6
6
<parent >
7
7
<artifactId >springboot-parent</artifactId >
8
8
<groupId >com.codingapi.springboot</groupId >
9
- <version >2.9.20 </version >
9
+ <version >2.9.21 </version >
10
10
</parent >
11
11
12
12
<name >springboot-starter-flow</name >
Original file line number Diff line number Diff line change @@ -184,11 +184,13 @@ public MessageResult rejectFlow() {
184
184
}
185
185
186
186
/**
187
- * 是否为驳回状态
188
- *
189
- * @return 是否为驳回状态
187
+ * 上级节点的状态是驳回状态
188
+ * @return 上级节点的状态是驳回状态
190
189
*/
191
- public boolean isRejectState () {
190
+ public boolean backStateIsReject () {
191
+ if (flowRecord == null ) {
192
+ return false ;
193
+ }
192
194
long preId = flowRecord .getPreId ();
193
195
if (preId == 0 ) {
194
196
return false ;
@@ -201,6 +203,26 @@ public boolean isRejectState() {
201
203
return false ;
202
204
}
203
205
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
+
204
226
205
227
/**
206
228
* 预提交流程
Original file line number Diff line number Diff line change 6
6
<parent >
7
7
<artifactId >springboot-parent</artifactId >
8
8
<groupId >com.codingapi.springboot</groupId >
9
- <version >2.9.20 </version >
9
+ <version >2.9.21 </version >
10
10
</parent >
11
11
12
12
<artifactId >springboot-starter-security</artifactId >
Original file line number Diff line number Diff line change 5
5
<parent >
6
6
<groupId >com.codingapi.springboot</groupId >
7
7
<artifactId >springboot-parent</artifactId >
8
- <version >2.9.20 </version >
8
+ <version >2.9.21 </version >
9
9
</parent >
10
10
<artifactId >springboot-starter</artifactId >
11
11
Original file line number Diff line number Diff line change 1
1
------------------------------------------------------
2
- CodingApi SpringBoot-Starter 2.9.20
2
+ CodingApi SpringBoot-Starter 2.9.21
3
3
springboot version (${spring-boot.version})
4
4
------------------------------------------------------
You can’t perform that action at this time.
0 commit comments