cancel
Showing results for 
Search instead for 
Did you mean: 

Expiration Date doesn`t work ?!?!?

sirclueless
Champ in-the-making
Champ in-the-making
Hi ,
I have test to publish a news-flash with a launch date and an expiration date. I have give to news flash a launch date and an expiration date. The launch date work perfect and the news-flash appears on the website to the launch date ( but I must do a refresh of the site and if I go to another menu point I must do a refresh again to see the news-flash).
But if the expiration date is arrieved nothing happens and the news-flash is still on the website 😞

Do I have something wrong or what is the mistake??
1 REPLY 1

kvc
Champ in-the-making
Champ in-the-making
The expiration date is used by a scheduled job that queries the repo using our new support for search to find a list of all expired items.  Any items past their expiration dates are assigned to user's as a change request.  User's can choose to either update or delete the item.  When they are completed with their workflow, the item will go through the normal submit dialog (to set anew a launch or expiration date) and configured workflow.

Quartz by default queries every morning at 3:30am to assign user's items they need to review the following morning.  This is entirely configurable.  You can see the default config settings in scheduled-jobs-context.xml here:


<!– Job to scan for expired content in website staging areas –>
    <bean id="avmExpiredContentTrigger" class="org.alfresco.util.CronTriggerBean">
        <property name="jobDetail">
            <bean id="avmExpiredContentJobDetail" class="org.springframework.scheduling.quartz.JobDetailBean">
                <property name="jobClass">
                    <value>org.alfresco.repo.avm.AVMExpiredContentJob</value>
                </property>
                <property name="jobDataAsMap">
                    <map>
                       <entry key="expiredContentProcessor">
                           <ref bean="avmExpiredContentProcessor" />
                       </entry>
                    </map>
                </property>
            </bean>
        </property>
        <property name="scheduler">
            <ref bean="schedulerFactory" />
        </property>
        <!– trigger at 3:30am each day –>
        <property name="cronExpression">
            <value>0 30 3 * * ?</value>
        </property>
    </bean>


Our wiki will be updated in the coming days with more detail here.  We have much docs clean-up to do.


Kevin