zhuguifei
2025-04-28 442928123f63ee497d766f9a7a14f0a6ee067e25
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package org.jeecg.modules.apply.lisener;
 
import org.activiti.engine.delegate.DelegateExecution;
import org.activiti.engine.delegate.ExecutionListener;
import org.jeecg.common.util.SpringContextUtils;
import org.jeecg.modules.apply.service.ApplyProcessService;
 
/**
 * 更改工作联系单主表
 * 监听:审批结束,更改表单状态和审批状态,保存审批记录
 * @Author: yll
 * @Date: 2019/7/23 18:34
 */
 
public class ContactResultListener implements ExecutionListener {
 
    @Override
    public void notify(DelegateExecution delegateExecution) {
 
        if (!"end".equals(delegateExecution.getEventName())) {
            return;
        }
        ApplyProcessService processService = SpringContextUtils.getBean(ApplyProcessService.class);
        processService.updateContactProcessResult(delegateExecution);
    }
 
}