普测测试流程
This commit is contained in:
@@ -77,7 +77,7 @@ public class BpmCategoryController extends BaseController {
|
||||
|
||||
@GetMapping("/getById")
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@Operation(summary = "获得流程分类")
|
||||
@ApiOperation("获得流程分类")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
public HttpResult<BpmCategory> getById(String id) {
|
||||
String methodDescribe = getMethodDescribe("getById");
|
||||
@@ -101,7 +101,7 @@ public class BpmCategoryController extends BaseController {
|
||||
|
||||
@GetMapping("/simpleList")
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@Operation(summary = "获得动态表单的精简列表", description = "用于表单下拉框")
|
||||
@ApiOperation("获得动态表单的精简列表")
|
||||
public HttpResult<List<BpmCategory>> getCategorySimpleList() {
|
||||
String methodDescribe = getMethodDescribe("getCategorySimpleList");
|
||||
List<BpmCategory> list = categoryService.getCategoryList();
|
||||
|
||||
@@ -91,7 +91,7 @@ public class BpmFormController extends BaseController {
|
||||
|
||||
@GetMapping("/getById")
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@Operation(summary = "获得动态表单")
|
||||
@ApiOperation("获得动态表单")
|
||||
@Parameter(name = "id", description = "编号", required = true)
|
||||
public HttpResult<BpmForm> getById(String id) {
|
||||
String methodDescribe = getMethodDescribe("getById");
|
||||
@@ -101,7 +101,7 @@ public class BpmFormController extends BaseController {
|
||||
|
||||
@GetMapping("/simpleList")
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@Operation(summary = "获得动态表单的精简列表", description = "用于表单下拉框")
|
||||
@ApiOperation("获得动态表单的精简列表")
|
||||
public HttpResult<List<BpmForm>> getFormSimpleList() {
|
||||
String methodDescribe = getMethodDescribe("getFormSimpleList");
|
||||
List<BpmForm> list = formService.getFormList();
|
||||
|
||||
@@ -134,7 +134,7 @@ public class BpmModelController extends BaseController {
|
||||
|
||||
|
||||
// @PostMapping("/import")
|
||||
// @Operation(summary = "导入模型")
|
||||
// @ApiOperation("导入模型")
|
||||
// @PreAuthorize("@ss.hasPermission('bpm:model:import')")
|
||||
// public CommonResult<String> importModel(@Valid BpmModeImportReqVO importReqVO) throws IOException {
|
||||
// BpmModelCreateReqVO createReqVO = BeanUtils.toBean(importReqVO, BpmModelCreateReqVO.class);
|
||||
@@ -155,7 +155,7 @@ public class BpmModelController extends BaseController {
|
||||
|
||||
//
|
||||
// @PutMapping("/update-state")
|
||||
// @Operation(summary = "修改模型的状态", description = "实际更新的部署的流程定义的状态")
|
||||
// @ApiOperation("修改模型的状态", description = "实际更新的部署的流程定义的状态")
|
||||
// @PreAuthorize("@ss.hasPermission('bpm:model:update')")
|
||||
// public CommonResult<Boolean> updateModelState(@Valid @RequestBody BpmModelUpdateStateReqVO reqVO) {
|
||||
// modelService.updateModelState(reqVO.getId(), reqVO.getState());
|
||||
|
||||
@@ -87,7 +87,7 @@ public class BpmProcessDefinitionController extends BaseController {
|
||||
}
|
||||
|
||||
@GetMapping("/list")
|
||||
@Operation(summary = "获得流程定义列表")
|
||||
@ApiOperation("获得流程定义列表")
|
||||
@Parameter(name = "suspensionState", description = "挂起状态", required = true) // 参见 Flowable SuspensionState 枚举
|
||||
public HttpResult<List<BpmProcessDefinitionInfoVO>> getProcessDefinitionList(Integer suspensionState) {
|
||||
String methodDescribe = getMethodDescribe("getProcessDefinitionList");
|
||||
@@ -105,7 +105,7 @@ public class BpmProcessDefinitionController extends BaseController {
|
||||
}
|
||||
|
||||
@GetMapping("/get")
|
||||
@Operation(summary = "获得流程定义")
|
||||
@ApiOperation("获得流程定义")
|
||||
@Parameter(name = "id", description = "流程编号", required = true, example = "1024")
|
||||
@Parameter(name = "key", description = "流程定义标识", required = true, example = "1024")
|
||||
public HttpResult<BpmProcessDefinitionInfoVO> getProcessDefinition(
|
||||
|
||||
@@ -101,7 +101,7 @@ public class BpmSignController extends BaseController {
|
||||
|
||||
@GetMapping("/simpleList")
|
||||
@OperateInfo(info = LogEnum.BUSINESS_COMMON)
|
||||
@Operation(summary = "获得动态表单的精简列表", description = "用于表单下拉框")
|
||||
@ApiOperation("获得动态表单的精简列表")
|
||||
public HttpResult<List<BpmSign>> getSignSimpleList() {
|
||||
String methodDescribe = getMethodDescribe("getCategorySimpleList");
|
||||
List<BpmSign> list = bpmSignService.getSignSimpleList();
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
package com.njcn.bpm.listener.business;
|
||||
|
||||
import com.njcn.bpm.listener.BpmProcessInstanceStatusEvent;
|
||||
import com.njcn.bpm.listener.BpmProcessInstanceStatusEventListener;
|
||||
import com.njcn.supervision.api.SurveyTestFeignClient;
|
||||
import org.springframework.stereotype.Component;
|
||||
|
||||
import javax.annotation.Resource;
|
||||
|
||||
|
||||
@Component
|
||||
public class BpmSurveyTestStatusListener extends BpmProcessInstanceStatusEventListener {
|
||||
|
||||
@Resource
|
||||
private SurveyTestFeignClient surveyTestFeignClient;
|
||||
|
||||
@Override
|
||||
protected String getProcessDefinitionKey() {
|
||||
return "survey_test";
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void onEvent(BpmProcessInstanceStatusEvent event) {
|
||||
surveyTestFeignClient.updateStatus(event.getBusinessKey(), event.getStatus());
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user