|
|
@@ -4,6 +4,7 @@ import com.ningdatech.basic.model.PageVo; |
|
|
|
import com.wflow.bean.entity.WflowModelHistorys; |
|
|
|
import com.wflow.bean.vo.WflowModelVo; |
|
|
|
import com.wflow.service.ModelGroupService; |
|
|
|
import com.wflow.utils.R; |
|
|
|
import com.wflow.workflow.service.ProcessModelService; |
|
|
|
import io.swagger.annotations.Api; |
|
|
|
import io.swagger.annotations.ApiOperation; |
|
|
@@ -49,6 +50,13 @@ public class SysProcdefController { |
|
|
|
return processModelService.saveProcess(modelHistory); |
|
|
|
} |
|
|
|
|
|
|
|
@PutMapping("/{formId}/active/{state}") |
|
|
|
public Object enOrDisModel(@PathVariable String formId, |
|
|
|
@PathVariable Boolean state) { |
|
|
|
modelGroupService.enOrDisModel(formId, !state); |
|
|
|
return R.ok(Boolean.TRUE.equals(state) ? "启用流程成功":"停用流程成功"); |
|
|
|
} |
|
|
|
|
|
|
|
@ApiOperation(value = "系统流程配置发布", notes = "系统流程配置发布") |
|
|
|
@PostMapping("/deploy/{formId}") |
|
|
|
public String save(@Validated @PathVariable String formId) { |
|
|
|