AnsweredAssumed Answered

how to use custom behavaiour when drop document into document library

Question asked by janaka1984 on Jan 15, 2017

Hi

 

I have used following spring XML to add custom property when upload files into a document library. it is working.  but updated value is not visible on time, I need to refresh the browser to see updated value

 

please give me hints short out this issue.

 

 

 

<bean id="onCreateSiteNode" class="org.alfresco.repo.policy.registration.ClassPolicyRegistration" parent="policyRegistration">
        <property name="policyName">
           
            <value>{http://www.alfresco.org}onCreateNode</value>
        </property>
        <property name="className">
     
            <value>{http://www.alfresco.org/model/content/1.0}content</value>
 
        </property>
        <property name="behaviour">
           <bean class="org.alfresco.repo.jscript.ScriptBehaviour" parent="scriptBehaviour">
                        <property name="location">
                                <bean class="org.alfresco.repo.jscript.ClasspathScriptLocation">
                                <constructor-arg>
                                  
                                    <value>alfresco/module/vdr-project-service/scripts/onUpdateDocument.js</value>
                                </constructor-arg>
                                </bean>
                        </property>
           </bean>
        </property>
    </bean> 

 

 

 

Regards

janaka

Outcomes