Skip to content

Commit 2c6623e

Browse files
committed
add FlowDirection
1 parent 1d6e281 commit 2c6623e

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

springboot-starter-flow/src/main/java/com/codingapi/springboot/flow/domain/FlowNode.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,6 @@ public List<? extends IFlowOperator> loadFlowNodeOperator(FlowContent flowConten
185185
* @param createOperator 流程操作者
186186
* @param currentOperator 当前操作者
187187
* @param snapshot 快照数据
188-
* @param opinion 审批意见
189188
* @param flowSourceDirection 流程方式
190189
* @return 流程记录
191190
*/
@@ -196,7 +195,6 @@ public FlowRecord createRecord(long workId,
196195
IFlowOperator createOperator,
197196
IFlowOperator currentOperator,
198197
BindDataSnapshot snapshot,
199-
Opinion opinion,
200198
FlowSourceDirection flowSourceDirection) {
201199

202200
// 当前操作者存在委托人时,才需要寻找委托人
@@ -215,7 +213,6 @@ public FlowRecord createRecord(long workId,
215213
record.setPostponedCount(0);
216214
record.setCreateOperatorId(createOperator.getUserId());
217215
record.setBindClass(snapshot.getClazzName());
218-
record.setOpinion(opinion);
219216
record.setCurrentOperatorId(flowOperator.getUserId());
220217
record.setPreId(preId);
221218
record.setTitle(title);

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public List<FlowRecord> createRecord(long preId, FlowNode currentNode) {
8686
String recordTitle = currentNode.generateTitle(flowContent);
8787
List<FlowRecord> recordList = new ArrayList<>();
8888
for (IFlowOperator operator : operators) {
89-
FlowRecord record = currentNode.createRecord(workId, processId, preId, recordTitle, createOperator, operator, snapshot, opinion, flowSourceDirection);
89+
FlowRecord record = currentNode.createRecord(workId, processId, preId, recordTitle, createOperator, operator, snapshot, flowSourceDirection);
9090
recordList.add(record);
9191
}
9292
return recordList;
@@ -146,7 +146,7 @@ private List<FlowRecord> errMatcher(FlowNode currentNode, long preId, IFlowOpera
146146
for (IFlowOperator operator : operators) {
147147
FlowContent content = new FlowContent(flowWork, currentNode, createOperator, operator, snapshot.toBindData(), opinion, historyRecords);
148148
String recordTitle = currentNode.generateTitle(content);
149-
FlowRecord record = currentNode.createRecord(flowWork.getId(), processId, preId, recordTitle, createOperator, operator, snapshot, opinion, flowSourceDirection);
149+
FlowRecord record = currentNode.createRecord(flowWork.getId(), processId, preId, recordTitle, createOperator, operator, snapshot, flowSourceDirection);
150150
recordList.add(record);
151151
}
152152
return recordList;
@@ -164,7 +164,7 @@ private List<FlowRecord> errMatcher(FlowNode currentNode, long preId, IFlowOpera
164164
if (!matcherOperators.isEmpty()) {
165165
for (IFlowOperator matcherOperator : matcherOperators) {
166166
String recordTitle = node.generateTitle(content);
167-
FlowRecord record = node.createRecord(flowWork.getId(), processId, preId, recordTitle, createOperator, matcherOperator, snapshot, opinion, flowSourceDirection);
167+
FlowRecord record = node.createRecord(flowWork.getId(), processId, preId, recordTitle, createOperator, matcherOperator, snapshot, flowSourceDirection);
168168
recordList.add(record);
169169
}
170170
}

0 commit comments

Comments
 (0)