cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X

EPMDocument event handling

ptc-4465514
1-Newbie

EPMDocument event handling

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

2 REPLIES 2

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

Top Tags