| | |
| | | /** |
| | | * 流程实例 Convert |
| | | * |
| | | * @author 芋道源码 |
| | | * @author 超级管理员 |
| | | */ |
| | | @Mapper |
| | | public interface BpmProcessInstanceConvert { |
| | |
| | | void copyTo(BpmProcessDefinitionInfoDO from, @MappingTarget BpmProcessDefinitionRespVO to); |
| | | |
| | | default BpmProcessInstanceStatusEvent buildProcessInstanceStatusEvent(Object source, ProcessInstance instance, |
| | | Integer status, String reason) { |
| | | String category, Integer status, String reason) { |
| | | return new BpmProcessInstanceStatusEvent(source).setId(instance.getId()).setStatus(status).setReason(reason) |
| | | .setProcessDefinitionKey(instance.getProcessDefinitionKey()).setBusinessKey(instance.getBusinessKey()); |
| | | .setProcessDefinitionKey(instance.getProcessDefinitionKey()) |
| | | .setProcessDefinitionCategory(category) |
| | | .setBusinessKey(instance.getBusinessKey()); |
| | | } |
| | | |
| | | default BpmMessageSendWhenProcessInstanceApproveReqDTO buildProcessInstanceApproveMessage(ProcessInstance instance) { |