在工作流结束过程中,类里面配置工作流结束时的过程
实现方法:
public class UpdateStatus implements JavaDelegate, ApplicationContextAware {
private static ApplicationContext applicationContext;
/**
* 采购审核结果处理
* @param execution
*/
@Override
public void execute(DelegateExecution execution) {
Service service = applicationContext
.getBean(Service.class);
String audit = execution.getVariable("audit").toString();
// 执行业务逻辑
.................
}
@Override
public void setApplicationContext(ApplicationContext applicationContext1) throws BeansException {
applicationContext = applicationContext1;
}
}
方法继承JavaDelegate、ApplicationContextAware 实现工作流结束过程
标签:applicationContext,结束,Service,Activiti,配置,ApplicationContext,execution,public From: https://www.cnblogs.com/xiaop27/p/18359361