|
@@ -5,6 +5,7 @@ import com.aizuda.boot.modules.flw.entity.dto.FlwProcessDTO;
|
|
|
import com.aizuda.boot.modules.flw.entity.dto.ProcessStartDTO;
|
|
|
import com.aizuda.boot.modules.flw.entity.vo.FlwProcessCategoryVO;
|
|
|
import com.aizuda.boot.modules.flw.service.IFlwProcessService;
|
|
|
+import com.aizuda.bpm.engine.model.NodeModel;
|
|
|
import com.aizuda.core.api.ApiController;
|
|
|
import com.baomidou.kisso.annotation.Permission;
|
|
|
import io.swagger.v3.oas.annotations.Operation;
|
|
@@ -57,6 +58,16 @@ public class ProcessController extends ApiController {
|
|
|
return flwProcessService.launchProcess(dto, FlowHelper.getFlowCreator());
|
|
|
}
|
|
|
|
|
|
+ @Operation(summary = "根据 id 获取模型")
|
|
|
+ @Parameters({
|
|
|
+ @Parameter(name = "id", description = "流程ID")
|
|
|
+ })
|
|
|
+ @Permission("sys:process:get")
|
|
|
+ @PostMapping("/node-model")
|
|
|
+ public NodeModel nodeModel(@RequestParam Long id) {
|
|
|
+ return flwProcessService.getNodeModelById(id);
|
|
|
+ }
|
|
|
+
|
|
|
@Operation(summary = "根据 id 获取节点 map 列表")
|
|
|
@Parameters({
|
|
|
@Parameter(name = "id", description = "流程ID")
|