|  | @@ -11,6 +11,7 @@ import com.flow.enums.ApprovalNobodyEnum;
 | 
	
		
			
				|  |  |  import com.flow.enums.AssigneeTypeEnum;
 | 
	
		
			
				|  |  |  import com.flow.enums.NotifyEnum;
 | 
	
		
			
				|  |  |  import com.flow.enums.ProcessStatus;
 | 
	
		
			
				|  |  | +import com.flow.flowable.event.CustomFlowableEngineEvent;
 | 
	
		
			
				|  |  |  import com.flow.flowable.utils.ProcessElementUtil;
 | 
	
		
			
				|  |  |  import com.flow.service.FlowDefineService;
 | 
	
		
			
				|  |  |  import com.flow.service.FlowInstanceService;
 | 
	
	
		
			
				|  | @@ -19,7 +20,7 @@ import com.flow.service.NotifyService;
 | 
	
		
			
				|  |  |  import lombok.extern.slf4j.Slf4j;
 | 
	
		
			
				|  |  |  import org.flowable.bpmn.model.FlowElement;
 | 
	
		
			
				|  |  |  import org.flowable.common.engine.api.delegate.event.FlowableEngineEntityEvent;
 | 
	
		
			
				|  |  | -import org.flowable.engine.RuntimeService;
 | 
	
		
			
				|  |  | +import org.flowable.common.engine.api.delegate.event.FlowableEngineEvent;
 | 
	
		
			
				|  |  |  import org.flowable.engine.TaskService;
 | 
	
		
			
				|  |  |  import org.flowable.engine.delegate.DelegateExecution;
 | 
	
		
			
				|  |  |  import org.flowable.engine.delegate.event.AbstractFlowableEngineEventListener;
 | 
	
	
		
			
				|  | @@ -35,6 +36,7 @@ import org.springframework.transaction.support.TransactionSynchronizationManager
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  import java.time.LocalDateTime;
 | 
	
		
			
				|  |  |  import java.util.Map;
 | 
	
		
			
				|  |  | +import java.util.Objects;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  @Component
 | 
	
		
			
				|  |  |  @Slf4j
 | 
	
	
		
			
				|  | @@ -44,8 +46,6 @@ public class GlobalActivityEventListener extends AbstractFlowableEngineEventList
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  |      private FlowTaskService flowTaskService;
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  | -    private RuntimeService runtimeService;
 | 
	
		
			
				|  |  | -    @Autowired
 | 
	
		
			
				|  |  |      private TaskService taskService;
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  |      private NotifyService notifyService;
 | 
	
	
		
			
				|  | @@ -161,4 +161,29 @@ public class GlobalActivityEventListener extends AbstractFlowableEngineEventList
 | 
	
		
			
				|  |  |          System.out.println("variables = " + variables);
 | 
	
		
			
				|  |  |      }
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    @Override
 | 
	
		
			
				|  |  | +    protected void custom(FlowableEngineEvent event) {
 | 
	
		
			
				|  |  | +        CustomFlowableEngineEvent entityEvent = (CustomFlowableEngineEvent) event;
 | 
	
		
			
				|  |  | +        if (Objects.nonNull(entityEvent)) {
 | 
	
		
			
				|  |  | +            switch (entityEvent.getCustomFlowableEventType()) {
 | 
	
		
			
				|  |  | +                case PROCESS_COPY:
 | 
	
		
			
				|  |  | +                    processCopy(entityEvent);
 | 
	
		
			
				|  |  | +                    break;
 | 
	
		
			
				|  |  | +                case ACTIVITY_JUMP:
 | 
	
		
			
				|  |  | +                    activityJump(entityEvent);
 | 
	
		
			
				|  |  | +                    break;
 | 
	
		
			
				|  |  | +                default:
 | 
	
		
			
				|  |  | +                    break;
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    protected void processCopy(CustomFlowableEngineEvent event) {
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    protected void activityJump(CustomFlowableEngineEvent event) {
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  }
 |