When configuring the package template, operators can mark any deliverable as optional. This allows the jobs that use the configured package template to be delivered even if there are missing, and optional, deliverables.
If the package you are building when running a job also includes metadata information related to the deliverables, we recommend implementing a conditional structure in the metadata template than can account for the possible missing deliverables in the final package.
The metadata structure below takes into account that both the artwork and the caption deliverable are optional and might be missing in the final package:
{% comment %}<!--Artwork-->{% endcomment %}{% assign artworkStatus = entity.attributes['en-US']['ArtworkAttr']['status'] | downcase %}{% assign artworkFilename = entity.attributes['en-US']['ArtworkAttr']['filename'] %}{% assign artworkSize = entity.attributes['en-US']['ArtworkAttr']['size'] %}{% comment %}<!--Caption-->{% endcomment %}{% assign captionStatus = entity.attributes['en-US']['CaptionAttr']['status'] | downcase %}{% assign captionFilename = entity.attributes['en-US']['CaptionAttr']['filename'] %}{% assign captionSize = entity.attributes['en-US']['CaptionAttr']['size'] %}<metadata>{% if artworkStatus != 'missing' %}<artwork><name>{{artworkFilename}}</name><size>{{artworkSize}}</size></artwork>{% endif %}{% if captionStatus != 'missing' %}<caption><name>{{captionFilename}}</name><size>{{captionSize}}</size></caption>{% endif %}</metadata>
The method relies on setting up a custom metadata field on your title (ArtworkAttr
or CaptionAttr
in this example) which is then used to identify certain source files that are generally used in deliveries.
To set up your deliveries in a similar fashion, follow these steps: