AnsweredAssumed Answered

Evaluator Not Working - 3 works out of 5

Question asked by zputnoky on Jul 25, 2017
Latest reply on Jul 28, 2017 by zputnoky

Dear All,


Run into an issue while creating evaluators to display different icons depending on the status of a document.

Have a status flag and a date to monitor and do some calculations based on the values assigned to these properties. In order to build the test case, I created dummy properties to store an integer (1 or null). These properties are set by a javascript code which started by a rule on a folder.


Below the code from custom-slingshot-application-context.xml


<bean id="evaluator.doclib.metadata.edlif_blnWATCH" parent="evaluator.doclib.action.propertyNotNull">
     <property name="property" value="edlif:blnWATCH"/>

<bean id="evaluator.doclib.metadata.edlif_blnLATER" parent="evaluator.doclib.action.propertyNotNull">
     <property name="property" value="edlif:blnLATER"/>

<bean id="evaluator.doclib.metadata.edlif_blnACCEPTED" parent="evaluator.doclib.action.propertyNotNull">
     <property name="property" value="edlif:blnACCEPTED"/>
<bean id="evaluator.doclib.metadata.edlif_blnREJECTED" parent="evaluator.doclib.action.propertyNotNull">  
     <property name="property" value="edlif:blnREJECTED"/> 

<bean id="evaluator.doclib.metadata.edlif_blnACCEPTEDWITHCOMMENTS" parent="evaluator.doclib.action.propertyNotNull">  
     <property name="property" value="edlif:blnACCEPTEDWITHCOMMENTS"/> 


Below the code from the share-config-custom.xml


<indicator id="accepted" index="10" icon="validated-16.png" label="ACCEPTED">

<indicator id="rejected" index="10" icon="rejected-16.png" label="REJECTED">
<indicator id="accepted_comments" index="10" icon="validated_comments-16.png" label="ACCEPTED WITH COMMENTS">

<indicator id="watch" index="10" icon="warning-16.png" label="WATCH">

<indicator id="late" index="10" icon="late-red-16.png" label="LATE">


The interesting part is that the evaluator works - no error message anywhere in the log files - and the proper icons are displayed for blnACCEPTED, blnREJECTED and blnACCEPTEDWITHCOMMENTS but not working for blnWATCH and blnLATER.


The icons are in the ../share/components/documentlibrary/indicators folder.

The javascript sets the properties to the right value - checked with JavaScript console.


Do you have any ideas what can cause such behaviour?




Zsolt Putnoky