1、编写PartListenersService.java文件并把编译的.class文件放入codebase\com\catl\part\monitor下
package com.catl.part.monitor;
import com.ptc.xworks.windchill.listener.WindchillListener;
import wt.events.KeyedEvent;
import wt.fc.PersistenceManagerEvent;
import wt.part.WTPart;
import wt.util.WTException;
import wt.vc.VersionControlServiceEvent;
import wt.vc.wip.WorkInProgressServiceEvent;
public class PartListenersService implements WindchillListener {
public static final String[] events = new String[5];
static {
events[0] = PersistenceManagerEvent.generateEventKey(PersistenceManagerEvent.POST_DELETE);//删除
events[1] = WorkInProgressServiceEvent.generateEventKey(WorkInProgressServiceEvent.PRE_UNDO_CHECKOUT);//撤销检出
events[2] = VersionControlServiceEvent.generateEventKey(VersionControlServiceEvent.POST_SUPERSEDE);//检入
events[3] = WorkInProgressServiceEvent.generateEventKey(WorkInProgressServiceEvent.PRE_