add - 新增模型分页查询入参,支持业务上下架
This commit is contained in:
parent
13e4e3ed92
commit
146a2b5e8e
@ -32,6 +32,12 @@ public class BpmnModelSearchDTO extends BpmPageParam {
|
||||
@ApiModelProperty(value = "流程模型分类", example = "1")
|
||||
private String category;
|
||||
|
||||
/**
|
||||
* 模型状态
|
||||
*/
|
||||
@ApiModelProperty(value = "流程模型状态", example = "0:下架, 1:下架", notes = "这里有点业务穿透,模型实际上本身没有状态")
|
||||
private Integer status;
|
||||
|
||||
/**
|
||||
* 工作台ID
|
||||
*/
|
||||
|
||||
@ -272,6 +272,7 @@ public class BpmnProcessModelServiceImpl implements BpmnProcessModelService {
|
||||
}
|
||||
|
||||
@Override
|
||||
@Transactional(rollbackFor = Throwable.class)
|
||||
public void unDeployBpmModelById(String processModelId, @Nullable String tenantId) {
|
||||
Model model = this.repositoryService.getModel(processModelId);
|
||||
if (Objects.isNull(model)) {
|
||||
@ -280,6 +281,8 @@ public class BpmnProcessModelServiceImpl implements BpmnProcessModelService {
|
||||
if (StringUtils.hasLength(tenantId) && !Objects.equals(model.getTenantId(), tenantId)) {
|
||||
throw new WorkflowEngineException(MODEL_ID_NOT_EXISTS, processModelId);
|
||||
}
|
||||
model.setDeploymentId("");
|
||||
repositoryService.saveModel(model);
|
||||
updateProcessDefinitionSuspended(model.getDeploymentId());
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user