ソースを参照

fix:修改触发异常接口

xuezizhuo 1 年間 前
コミット
01fc984888

+ 4 - 4
ruoyi-process-execution/src/main/java/com/ruoyi/execution/produce/dispersed/controller/BpmExecuteNodeController.java

@@ -98,10 +98,10 @@ public class BpmExecuteNodeController extends BaseController {
     }
 
     /**
-     * 触发异常
+     * 触发异常节点
      */
-    @PostMapping("/triggerException")
-    public AjaxResult triggerException(@RequestBody TriggerExceptionVO vo) throws Exception {
-        return toAjax(bpmExecuteNodeService.triggerException(vo));
+    @PostMapping("/triggerExceptionNode")
+    public AjaxResult triggerExceptionNode(@RequestBody TriggerExceptionVO vo) throws Exception {
+        return toAjax(bpmExecuteNodeService.triggerExceptionNode(vo));
     }
 }

+ 2 - 2
ruoyi-process-execution/src/main/java/com/ruoyi/execution/produce/dispersed/service/IBpmExecuteNodeService.java

@@ -72,8 +72,8 @@ public interface IBpmExecuteNodeService {
     public int updateNodeState(BpmExecuteNode bpmExecuteNode);
 
     /**
-     * 触发异常
+     * 触发异常节点
      */
-    int triggerException(TriggerExceptionVO vo) throws Exception;
+    int triggerExceptionNode(TriggerExceptionVO vo) throws Exception;
 
 }

+ 1 - 1
ruoyi-process-execution/src/main/java/com/ruoyi/execution/produce/dispersed/service/impl/BpmExecuteNodeServiceImpl.java

@@ -113,7 +113,7 @@ public class BpmExecuteNodeServiceImpl implements IBpmExecuteNodeService {
 
     @Override
     @Transactional
-    public int triggerException(TriggerExceptionVO vo) throws Exception {
+    public int triggerExceptionNode(TriggerExceptionVO vo) throws Exception {
         //新增节点标签ID
         String newUserTaskTagId = "Flow_" + IdUtils.fastSimpleUUID().substring(0, 7);
         //bpm_execute_process