wang1
2023-07-20 51e7ec9febec8c27035583505e95433860bd9146
Source/UBCS/ubcs-ops/ubcs-flow/src/main/java/com/vci/ubcs/flow/engine/envent/FlowExecutionStartListener.java
@@ -1,19 +1,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
//@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);
   }
}