parent
2b64bc4b8a
commit
704be43d48
4 changed files with 6 additions and 39 deletions
@ -1,35 +0,0 @@ |
||||
package org.springblade.plugin.listener; |
||||
|
||||
import org.flowable.engine.delegate.DelegateExecution; |
||||
import org.flowable.engine.delegate.ExecutionListener; |
||||
import org.springblade.plugin.config.SpringContextHolder; |
||||
import org.springblade.plugin.workbench.service.IAutoStartModelService; |
||||
import org.springblade.plugin.workbench.service.impl.AutoStartModelServiceImpl; |
||||
import org.springframework.stereotype.Component; |
||||
|
||||
/** |
||||
* @Description |
||||
* @Author ytl |
||||
* @Date 2023/3/2 0002 15:52 |
||||
*/ |
||||
@Component |
||||
public class FormEndListener implements ExecutionListener{ |
||||
@Override |
||||
public void notify(DelegateExecution delegateExecution) { |
||||
String event = delegateExecution.getEventName(); |
||||
String processInstanceId = delegateExecution.getProcessInstanceId(); |
||||
switch (event) { |
||||
case "start" : |
||||
System.out.println("FormEndListener--start event-------------------"); |
||||
break; |
||||
case "end" : |
||||
System.out.println("FormEndListener--end event----------------------"); |
||||
// IAutoStartModelService autoStartModelService = (IAutoStartModelService)SpringContextHolder.getBean(AutoStartModelServiceImpl.class);
|
||||
// autoStartModelService.saveStartProcess(processInstanceId,delegateExecution.getVariables());
|
||||
break; |
||||
case "take" : |
||||
System.out.println("FormEndListener--take event---------------------"); |
||||
break; |
||||
} |
||||
} |
||||
} |
||||
Loading…
Reference in new issue