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?
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).