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);
|
}
|
}
|