|
Bertrand Dunogier
|
Wednesday 12 January 2011 4:38:37 am
Comment65008
Marko, There are imho two main counter arguments. Execution order content edit handlers are executed at step #9 of the content/publish operation (out of 19 currently). Several further steps haven't been executed yet at that step. Post publish trigger is step #19. The object is therefore in an incomplete state (onPublish hasn't been called on attributes, untranslated attributes haven't been updated, cache hasn't been cleared, search indexing hasn't been done...). This might not be an issue in every case, but it can't be neglected. Common sense ;-) It isn't a technical argument, but imho, a workflow makes more sense (yet, that isn't very concrete) than a content edit handler here, in terms of extension type. Regarding complexity, workflow events require a bit more than content edit handlers, that is true, but once you're used to the API, they're not that complex. Execution of content edit handlers is probably a bit faster, though. I haven't tested, but based on what I know of the operation, they most likely are.
Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier
|