<html><head><meta http-equiv="Content-Type" content="text/html; charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class=""><br class=""><div><br class=""><blockquote type="cite" class=""><div class="">On 2022-05-04, at 22:08, <a href="mailto:jehan.procaccia@tem-tsp.eu" class="">jehan.procaccia@tem-tsp.eu</a> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta charset="UTF-8" class=""><p style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">I realized that by default there is no ValidUntil , nor CacheDuration after aggregation by aggregator-cli-0.9.2<br class=""></p></div></blockquote><div>Right.</div><div><br class=""></div><blockquote type="cite" class=""><div class=""><p style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">so I took my sample config from old aggregator-cli-0.7.0  adding stages addValidUntil and addCacheDuration in my config file [3] + associated beans definitions [4]<span class="Apple-converted-space"> </span><br class=""></p><p style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">unfortunatly it did not create a validUntil and cacheDuration in the main aggregator element<span class="Apple-converted-space"> </span><b class="">EntitiesDescriptor<span class="Apple-converted-space"> </span></b>[1]  => this is where I want it ! , but finally appears in each individual EntityDescriptor [2] (which I don't need)<span class="Apple-converted-space"> </span><br class=""></p><p style="caret-color: rgb(0, 0, 0); font-family: Helvetica; font-size: 13px; font-style: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration: none;" class="">is my config file ([3] / [4] ) incorrect  ?<br class=""></p></div></blockquote><div>In a pipeline, a collection of items is passed to each listed stage in turn. In your pipeline, you collect the entities and then apply the cacheDuration and validUntil stages, then a stage to collect those into an EntitiesDescriptor. You're asking those two stages to operate on the individual entities rather than on the EntitiesDescriptor.</div><div><br class=""></div><div>If you want those two stages to act on the EntitiesDescriptor rather than the individual entities, you need to move them down the pipeline until after the entities have been combined into an EntitiesDescriptor:</div><div><br class=""></div><div><div><div><blockquote type="cite" class=""><p class=""><i class=""><font size="2" class="">                <ref bean="createEntitiesDescriptor"/><br class=""></font></i></p></blockquote></div></div><blockquote type="cite" class=""><p class=""><i class=""><font size="2" class="">           <b class="">     <ref bean="addCacheDuration"/></b><b class=""><br class=""></b><b class="">                <ref bean="addValidUntil"/></b><br class=""></font></i></p></blockquote></div><div>Hope that helps,</div><div><br class=""></div></div><div class=""><span class="Apple-style-span" style="border-collapse: separate; font-variant-ligatures: normal; font-variant-east-asian: normal; font-variant-position: normal; font-weight: normal; line-height: normal; border-spacing: 0px; -webkit-text-decorations-in-effect: none;"><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; border-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-stroke-width: 0px;"><div class="">    -- Ian<br class=""></div><div class=""><span class="Apple-style-span" style="font-size: medium;"><br class=""></span></div></span></div></span><br class="Apple-interchange-newline"><br class="Apple-interchange-newline">
</div>
<br class=""></body></html>