api - wt.vc.VersionControlServiceEvent.NEW_VERSION -


I have a windchill service, from which I am capturing the revision. I am using the API VersionControlServiceEvent. NEW_VERSION

But this event is capturing both the checkout and revision events. I just need to capture the modified incident. It is only modified to modify the event or to have another API to do this

Starting with my last answer (), you just need to test the target object's position:

  public class versionEvent Listener Adapter ServiceEventListenerAdapter {public VersionEventListenerAdapter (String serviceId) {super (serviceId); } Public Zero does not indicate VietEvent (object event) throws WTException, WTPropertyVetoException {if ((Event! KeyedEvent of Event Event)) {Return; } Object target = (KeyedEvent event) .getEventTarget (); Object eventType = ((KeyedEvent event) .getEventType (); If (eventType.equals (VersionControlServiceEvent.NEW_VERSION)) // Check that the object has been checked, if (the example of the goal) the work and the operating system Helper.Scached Out (Goal) (Goal) {Return;} / ** Call your business code here Example: yourMethod (target); ** /}}    

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -