Java – In Documentum 6.5 the TBO’s are being triggered even when the document is a template

documentumdocumentum6.5java

When creating and modifying document templates in Documentum 6.5 my TBO for that object type is being triggered. In 5.3 creating a template did not trigger the TBO.

This is a problem because I have the TBO doing all sorts of things with documents when they are checked in and saved. But I want it to do nothing if the document is just a template going into my templates cabinet.

Has anyone else come across this issue? What strategies are there to get around this problem?

Best Solution

I would think there would be some way to programatically detect if the object being acted on is a template, thus you could wrap your custom tbo logic in an if check for this, and if it is a template none of your logic would be performed. However...

...In general it's not considered good practice to have heavy amounts of logic in your tbo, as tbo's run regardless of context and you often run into situations such as this, which you want to avoid. It is better to put this type of logic in an sbo and call the sbo from the context where you want this logic to be invoked. ie by extending webtop.

Related Question