Skip to content

Commit

Permalink
LeaveProcessEndListener改为实现ExecutionListener接口
Browse files Browse the repository at this point in the history
  • Loading branch information
henryyan committed Apr 17, 2014
1 parent 419c2b7 commit 3fdcd0e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -16,15 +16,15 @@
*/
@Service
@Transactional
public class LeaveProcessEndListener implements JavaDelegate {
public class LeaveProcessEndListener implements ExecutionListener {

protected Logger logger = LoggerFactory.getLogger(getClass());

@Autowired
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);
Expand Down

0 comments on commit 3fdcd0e

Please sign in to comment.