cancel
Showing results for 
Search instead for 
Did you mean: 

using evaluators in presets

flheide
Champ in-the-making
Champ in-the-making
Hi!

I have made my own evaluator "caseoverviewevaluator" which works fine inside a template-instance

<component>
         <region-id>navigation</region-id>
         <sub-components>
            <sub-component id="default">
               <evaluations>
                  <!– if in site: Site navigation –>
                  <evaluation id="site">
                     <evaluators>
                        <evaluator type="caseoverviewevaluator"/>
                     </evaluators>
                     <url>/components/navigation/collaboration-navigation</url>
                  </evaluation>
               </evaluations>
            </sub-component>
         </sub-components>
      </component>


but i would like to use it aswell inside the presets.xml file to decide which elements should be shown inside a preset. I have tried using the same code as above:

         <component>
                <scope>page</scope>
                 <region-id>component-2-2</region-id>
                <source-id>case/${caseid}/dashboard</source-id>
               
                <sub-components>
            <sub-component id="default">
               <evaluations>
                  <!– if in site: Site navigation –>
                  <evaluation id="site">
                     <evaluators>
                        <evaluator type="caseoverviewevaluator"/>
                      </evaluators>
                        <url>/components/dashlets/calendar</url>
                  </evaluation>
               </evaluations>
            </sub-component>
         </sub-components>
            </component>
 
but nothing happends - it seems as the evaluator is not called, as there is no output in the log.

I wonder if it is possible at all to use evaluators inside a preset?

Thanks

Flemming
               
               
2 REPLIES 2

ddraper
World-Class Innovator
World-Class Innovator
No, unfortunately you can't use evaluations inside presets. You can always override the "webframework.presets.manager" bean if you want to add in support for them yourself. (there are no plans to add support for this feature).

Regards,
Dave

flheide
Champ in-the-making
Champ in-the-making
Thank you for your answer.

Flemming