I have created both Pre & Post Hooks for G4MSave command in TC Classification using a Custom java plugin, hooked in common.properties 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?