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

Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X

Listening for Project State Events

ptc-5248447
1-Visitor

Listening for Project State Events

Anyone know how to listen for state events on a project?


For example: If someone "Starts" the project then I would like to listen for that event and run some code.


I thought that maybe I can use ProjectEventType or even ProjectAuditEvent. But that doesn't seem to work.

2 REPLIES 2

hi,

set
wt.services.verbose=true
wt.services.verboseEvents=true
and check the ms log file. shows all events being emitted.

hth, martin

Martin, thanks for that information!


I was able to gather that we need to listen for an event key of 'ContainerTeamServiceEvent/STATE_CHANGE' after setting the wt property verboseEvents=true.


The Project2 class has a getCtmState() which provides the state information of a project which essentialy returns a ContainerTeamManagedState.

Announcements


Top Tags