Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X
Hi Guys,
I have a question on EPMDocument event handling in Windchill.
Whenever a collection of EPMDocuments(family table or independent objects) are checked in to Windchill from the Workspace, in OOTB, which Listener services triggered for this event.
I want the list of files from Windchill codebase that are involved in this event handling service.
Does the solution available in any PTC reference guides?
Thanks in advance.
Narendra
Hi Narendra
please find bellow the events trigerred for EPMDoc on checkin
note that the WorkInProgressServiceEvent/PRE_CHECKIN seems not to be trigerred on the very first checkin of a "new/only uploaded" EPMDoc
the best way to find the best event. set in the wt.properties wt.services.verboseEvents=true
and then do your action with the UI
regards
Gregory
*/com.ptc.windchill.uwgm.proesrv.c11n.UwgmEvent/PRE_CHECKIN for object [wt.epm.EPMDocument:918881873]
/wt.epm.workspaces.EPMWorkspaceManagerEvent/PRE_WORKSPACE_CHECKIN for object {wt.epm.EPMDocument:918881873=wt.epm.EPMDocument:918881821}
*/wt.vc.wip.WorkInProgressServiceEvent/PRE_CHECKIN for object {wt.epm.EPMDocument:918881821=wt.epm.EPMDocument:918881873}
*/wt.vc.wip.WorkInProgressServiceEvent/POST_CHECKIN for object {wt.epm.EPMDocument:918881821=wt.epm.EPMDocument:918881873}
*/wt.epm.workspaces.EPMWorkspaceManagerEvent/POST_WORKSPACE_CHECKIN for object {wt.epm.EPMDocument:918881873=wt.epm.EPMDocument:918881821}
Hello!
We have a custo that is listening for check ins where we are catching the following events:
Check in of existing EPMDocuments.
WorkInProgressServiceEvent.POST_CHECKIN
code:
WorkInProgressServiceEvent wipse = (WorkInProgressServiceEvent) eventObject;
Object targetObject = wipse.getEventTarget();
if(targetObject instanceof EPMDocument){
EPMDocument working = (EPMDocument) wipse.getWorkingCopy();
...
Check in of new EPMDocuments:
PersistenceManagerEvent.POST_STORE
code:
PersistenceManagerEvent pme = (PersistenceManagerEvent) eventObject;
Object targetObject = pme.getEventTarget();
if(targetObject instanceof EPMDocument){
EPMDocument doc = (EPMDocument) targetObject;
...
Best regards,
Peter