Skip to main content
1-Visitor
February 20, 2013
Question

Event Type when renaming or editting common attributes?

  • February 20, 2013
  • 4 replies
  • 2163 views

I'm working on an event handler that will check when a part has it's 'Common Attributes' updated. Has anybody figured out which event those actions trigger? I've tried a handful of those out of PersistenceManagerEvent but they don't seem to be the right ones.

4 replies

1-Visitor
February 20, 2013
pre/post_store on wtpartmaster? else pre_modify or update I'd think.

set in wt.properties
wt.services.verbose=true
wt.services.verboseEvents=true

and restart MS - will print *lots* of information on event handling, you can see what events get emitted.

hth, martin

1-Visitor
February 20, 2013
So for Editcommon attribute. Below is target class which is instance of
changed object.

I am catching with below code.

if (keyedEvent.getEventType().equals("PRE_STORE")) {
if(target instanceof IdentityChangeHistory){


Regards,
Manisha




martin kraegeloh <martl@sulis.de>
02/20/2013 02:58 PM
Please respond to
martin kraegeloh <martl@sulis.de>


To
-
cc

Subject
[solutions] - RE: Event Type when renaming or editting common attributes?






pre/post_store on wtpartmaster? else pre_modify or update I'd think.

set in wt.properties
wt.services.verbose=true
wt.services.verboseEvents=true

and restart MS - will print *lots* of information on event handling, you
can see what events get emitted.

hth, martin

1-Visitor
February 22, 2013

Hi,


The events triggered for the identity changes (common attributes) are IdentityServiceEvent.PRE_CHANGE_IDENTITY andIdentityServiceEvent.POST_CHANGE_IDENTITY.



Regards,


4-Participant
February 20, 2023

Were you able to identify a solution for this. If yes, please share