| | |
| | | /** |
| | | * {@link BpmProcessInstanceStatusEvent} 的监听器 |
| | | * |
| | | * @author 芋道源码 |
| | | * @author 超级管理员 |
| | | */ |
| | | public abstract class BpmProcessInstanceStatusEventListener |
| | | implements ApplicationListener<BpmProcessInstanceStatusEvent> { |
| | | |
| | | @Override |
| | | public final void onApplicationEvent(BpmProcessInstanceStatusEvent event) { |
| | | if (!StrUtil.equals(event.getProcessDefinitionKey(), getProcessDefinitionKey())) { |
| | | // 优先按流程定义 Key 匹配;同时兼容同一业务分类下的历史自定义 Key(此时按分类匹配) |
| | | if (!StrUtil.equals(event.getProcessDefinitionKey(), getProcessDefinitionKey()) |
| | | && !StrUtil.equals(event.getProcessDefinitionCategory(), getProcessDefinitionKey())) { |
| | | return; |
| | | } |
| | | onEvent(event); |