Commit f190a138 by huangfusuper

初始化告警时机

parent fbd942fb
......@@ -529,6 +529,7 @@ public class ApiFlowServiceImpl implements ApiFlowService {
Integer waitId = waitingRecordMapper.insertSelective(waitingRecord);
//生成新的工作流实例
newRunRecording.setIsAlarm("1");
runRecordingMapper.saveRunRecording(newRunRecording);
waitingTaskList.forEach(waiting -> {
waiting.setWaitId(waitingRecord.getWaitId());
......@@ -1186,6 +1187,7 @@ public class ApiFlowServiceImpl implements ApiFlowService {
//设置实例
BeanUtils.copyProperties(waitingRecord, runRecording);
runRecording.setFlowStatus("1");
runRecording.setIsAlarm("1");
runRecording.setTriggerTime(System.currentTimeMillis());
runRecording.setWorkspaceId(flow.getWorkspaceId());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment