Showing results for 
Search instead for 
Did you mean: 

TC Classification Save Pre Check Custom Hook


Hi All,

I have created both Pre & Post Hooks for G4MSave command in TC Classification using a Custom java plugin, hooked in file in TCAPPS jar file.


Everything works fine with respect to Pre-Validation & Post-Action.

What I want is, after some Pre-validations, I need to STOP classifying the object if some X condition failed. Even though, I throw TCException or generic Exception after that failed condition, system still proceeds with "Classifying the object" & does post action too.


If I put system.exit(), obviously Teamcenter is shut down. But how can I just STOP classifying the object in Pre-Hook code?


Appreciate your help on this regard.