wang1
2023-07-20 51e7ec9febec8c27035583505e95433860bd9146
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
package com.vci.ubcs.flow.engine.envent;
 
import com.vci.ubcs.code.feign.IFlowEventClient;
import lombok.extern.slf4j.Slf4j;
import org.flowable.engine.delegate.DelegateExecution;
import org.flowable.engine.delegate.ExecutionListener;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
 
import javax.annotation.Resource;
import java.util.Map;
 
@Slf4j
//@Component
public class FlowExecutionStartListener implements ExecutionListener {
    @Autowired(required = false)
    private IFlowEventClient iFlowEventClient;
 
    @Override
    public void notify(DelegateExecution execution) {
        Map var = execution.getVariableInstances();
        iFlowEventClient.flowStart(var);
        log.info("执行流程FlowExecutionStartListener",var);
    }
}