【代码重构】工作流:完善 BpmTaskCandidateInvoker 的单元测试

This commit is contained in:
YunaiV 2024-10-31 22:44:44 +08:00
parent 7c7748d7e8
commit 86bce66bad
3 changed files with 5 additions and 5 deletions

View File

@ -33,8 +33,8 @@ public class BpmProcessDefinitionRespVO {
@Schema(description = "流程分类名字", example = "请假")
private String categoryName;
@Schema(description = "流程模型的类型", example = "10")
private Integer modelType;
@Schema(description = "流程模型的类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "10")
private Integer modelType; // 参见 BpmModelTypeEnum 枚举类
@Schema(description = "表单类型-参见 bpm_model_form_type 数据字典", example = "1")
private Integer formType;

View File

@ -88,8 +88,8 @@ public interface BpmProcessInstanceConvert {
AdminUserRespDTO startUser,
DeptRespDTO dept) {
BpmProcessInstanceRespVO respVO = BeanUtils.toBean(processInstance, BpmProcessInstanceRespVO.class);
respVO.setStatus(FlowableUtils.getProcessInstanceStatus(processInstance));
respVO.setFormVariables(FlowableUtils.getProcessInstanceFormVariable(processInstance));
respVO.setStatus(FlowableUtils.getProcessInstanceStatus(processInstance))
.setFormVariables(FlowableUtils.getProcessInstanceFormVariable(processInstance));
// definition
respVO.setProcessDefinition(BeanUtils.toBean(processDefinition, BpmProcessDefinitionRespVO.class));
copyTo(processDefinitionInfo, respVO.getProcessDefinition());