Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
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.
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.