package com.vci.server.workflow.server.event;
|
|
import org.jbpm.api.listener.EventListener;
|
import org.jbpm.api.listener.EventListenerExecution;
|
|
import com.vci.server.base.persistence.history.OperationType;
|
|
public class RmDisableListener extends BaseRmStatusListener implements EventListener {
|
|
/**
|
* 停用
|
*/
|
private static final long serialVersionUID = 1L;
|
|
public void notify(EventListenerExecution eventListenerExecution) throws Exception {
|
// restoreStatus(eventListenerExecution);//先恢复到初始状态
|
doAction(eventListenerExecution, "PLSTATUS", "3",OperationType.UPDATE.toString());//回到生效状态
|
doAction(eventListenerExecution, "PLISFREEZE", "1",OperationType.FREEZE.toString());
|
// new OAListenerENDCommon().notifyOA(eventListenerExecution);
|
}
|
}
|