Skip to content

Commit 0645a4d

Browse files
committed
add start node try submit
1 parent 8687d71 commit 0645a4d

File tree

3 files changed

+23
-0
lines changed

3 files changed

+23
-0
lines changed

admin-ui/src/components/Flow/panel/ButtonPanel.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ const buttonEventOptions = [
2424
label: "保存",
2525
value: "SAVE"
2626
},
27+
{
28+
label: "发起",
29+
value: "START"
30+
},
2731
{
2832
label: "提交",
2933
value: "SUBMIT"
@@ -52,6 +56,10 @@ const buttonEventOptions = [
5256
label: "延期",
5357
value: "POSTPONED"
5458
},
59+
{
60+
label: "催办",
61+
value: "URGE"
62+
},
5563
{
5664
label: "自定义",
5765
value: "CUSTOM"

springboot-starter-flow/src/main/java/com/codingapi/springboot/flow/em/FlowButtonType.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ public enum FlowButtonType {
44

55
// 保存
66
SAVE,
7+
// 发起
8+
START,
79
// 提交
810
SUBMIT,
911
// 预提交
@@ -18,6 +20,8 @@ public enum FlowButtonType {
1820
RECALL,
1921
// 延期
2022
POSTPONED,
23+
// 催办
24+
URGE,
2125
// 自定义
2226
CUSTOM,
2327
}

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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,17 @@ public FlowDetail detail(long recordId, IFlowOperator currentOperator) {
7474
}
7575

7676

77+
/**
78+
* 流程详情
79+
*
80+
* @param workCode 流程编号
81+
* @return 流程详情
82+
*/
83+
public FlowDetail detail(String workCode, IFlowOperator currentOperator) {
84+
return this.detail(0, workCode, currentOperator);
85+
}
86+
87+
7788
/**
7889
* 流程详情
7990
*

0 commit comments

Comments
 (0)