AnsweredAssumed Answered

When and how AddFailedThumbnailActionExecuter is executed?

Question asked by alejandrogarciaseco on Feb 25, 2014
Latest reply on Apr 4, 2014 by mlagneaux
Hi all,

I'm trying to implement a customization such allows to identify whether the PDF thumbnail
cm:pdf
has been properly transformed and saved as child of a specific node.

Alfresco does something similar with the image thumbnails used in the document library, it is a child called 'cm:doclib'. If the transformation to generate such thumbnail fails, the
AddFailedThumbnailActionExecuter
flags the node with the
cm:failedThumbnailSource
aspect and the corresponding
cm:doclib
child with 'cm:failedThumbnail' type and association type.

To achieve what I need, I'd like to emulate this behaviour so in the moment that the transformation to PDF fails, automatically flag the
cm:pdf
node child with type
cm:failedThumbnail
. The problem is that I really cannot figure out when and under what circumstances the
AddFailedThumbnailActionExecuter
action kicks in and that's what I'd like to know.

I wonder if I'm trying to follow the right approach or rather try a different one.

By the way, also mention that I'm using the Media Viewers plugin in case this made any difference, but I don't so.

Thanks.

Outcomes