Conditions
Conditions for invoking addons
In order to check for below conditions:-
- the asset metadata should be retrieved using Asset API
- the user settings should be retrieved using User Settings API
To validate whether an addon should be invoked for an asset, the following conditions are checked:-
- The
event_typesent in message matches atleast one of the event types in User Addon Settingsevent-hooksand the event type is enabled - The asset's content type matches atleast one of the
content_typesspecified inevent-hooks - If
force_processingis set to true, the addon is invoked irrespective of whether it has already been processed for the asset - If
force_processingis not set or is false, the addon is invoked only if it has NOT already been processed for the asset - If no addons are specified, all the addons enabled in user settings are invoked for the asset provided the above conditions are satisfied