From 3fdcd0e4ad6d48b1d65a824661ede6be573b1136 Mon Sep 17 00:00:00 2001 From: Henry Yan Date: Fri, 18 Apr 2014 00:15:25 +0800 Subject: [PATCH] =?UTF-8?q?LeaveProcessEndListener=E6=94=B9=E4=B8=BA?= =?UTF-8?q?=E5=AE=9E=E7=8E=B0ExecutionListener=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../activiti/service/oa/leave/LeaveProcessEndListener.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/me/kafeitu/demo/activiti/service/oa/leave/LeaveProcessEndListener.java b/src/main/java/me/kafeitu/demo/activiti/service/oa/leave/LeaveProcessEndListener.java index ff75d70ad4..8c04c7436a 100644 --- a/src/main/java/me/kafeitu/demo/activiti/service/oa/leave/LeaveProcessEndListener.java +++ b/src/main/java/me/kafeitu/demo/activiti/service/oa/leave/LeaveProcessEndListener.java @@ -2,7 +2,7 @@ import me.kafeitu.demo.activiti.dao.ActivitiDao; import org.activiti.engine.delegate.DelegateExecution; -import org.activiti.engine.delegate.JavaDelegate; +import org.activiti.engine.delegate.ExecutionListener; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; @@ -16,7 +16,7 @@ */ @Service @Transactional -public class LeaveProcessEndListener implements JavaDelegate { +public class LeaveProcessEndListener implements ExecutionListener { protected Logger logger = LoggerFactory.getLogger(getClass()); @@ -24,7 +24,7 @@ public class LeaveProcessEndListener implements JavaDelegate { ActivitiDao activitiDao; @Override - public void execute(DelegateExecution execution) throws Exception { + public void notify(DelegateExecution execution) throws Exception { String processInstanceId = execution.getProcessInstanceId(); int i = activitiDao.deleteFormPropertyByProcessInstanceId(processInstanceId);